Skip to content

Commit

Permalink
Restored lock as spin lock.
Browse files Browse the repository at this point in the history
  • Loading branch information
emeryberger committed Jan 16, 2020
1 parent 54db3e8 commit f4b639b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libscalene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ const auto MallocSamplingRate = 65536; // 65537; // 64 * 1024;
const auto FreeSamplingRate = 65536; // 32771; // 64 * 1024; // choose these so they are relatively prime
const auto RepoSize = 4096;

typedef SampleHeap<MallocSamplingRate, FreeSamplingRate, RepoMan<RepoSize>> CustomHeapType;
typedef HL::LockedHeap<HL::SpinLock, SampleHeap<MallocSamplingRate, FreeSamplingRate, RepoMan<RepoSize>>> CustomHeapType;
//typedef SampleHeap<MallocSamplingRate, FreeSamplingRate, RepoMan<RepoSize>> CustomHeapType;

class TheCustomHeap : public CustomHeapType {
typedef CustomHeapType Super;
Expand Down

0 comments on commit f4b639b

Please sign in to comment.