Skip to content

Commit

Permalink
Removed lock, hopefully concurrency errors lie elsewhere. Increased m…
Browse files Browse the repository at this point in the history
…emory sample period.
  • Loading branch information
emeryberger committed Jan 16, 2020
1 parent 845e043 commit f5af123
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libscalene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
class TheCustomHeap;
static TheCustomHeap * theCustomHeap = nullptr;

const auto MallocSamplingRate = 512 * 1024;
const auto FreeSamplingRate = 512 * 1024;
const auto MallocSamplingRate = 1024 * 1024;
const auto FreeSamplingRate = 1024 * 1024;
const auto RepoSize = 4096;

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

class TheCustomHeap : public CustomHeapType {
Expand Down

0 comments on commit f5af123

Please sign in to comment.