search for: primaryallocator

Displaying 15 results from an estimated 15 matches for "primaryallocator".

2016 Jun 17
2
Attempt to modify memory sanitizer for support of X86
...tor.cc +++ b/lib/msan/msan_allocator.cc @@ -49,7 +49,15 @@ struct MsanMapUnmapCallback { typedef SizeClassAllocator32<0, SANITIZER_MMAP_RANGE_SIZE, sizeof(Metadata), SizeClassMap, kRegionSizeLog, ByteMap, MsanMapUnmapCallback> PrimaryAllocator; - +#elif defined (__i386__) +static const uptr kMaxAllowedMallocSize = 3UL << 30; + static const uptr kRegionSizeLog = 20; + static const uptr kNumRegions = SANITIZER_MMAP_RANGE_SIZE >> kRegionSizeLog; + typedef FlatByteMap<kNumRegions> ByteMap; + typedef CompactSizeClassMap...
2013 May 25
0
[LLVMdev] compiler-rt tests in cmake?
...terceptor: // Suppose you need to wrap/replace system function (generally, from libc): diff --git a/lib/lsan/lsan_allocator.cc b/lib/lsan/lsan_allocator.cc index 9bf27b1..190dce8 100644 --- a/lib/lsan/lsan_allocator.cc +++ b/lib/lsan/lsan_allocator.cc @@ -43,7 +43,7 @@ typedef CombinedAllocator<PrimaryAllocator, AllocatorCache, SecondaryAllocator> Allocator; static Allocator allocator; -static THREADLOCAL AllocatorCache cache; +static /*THREADLOCAL*/ AllocatorCache cache; void InitializeAllocator() { allocator.Init(); diff --git a/lib/msan/msan_allocator.cc b/lib/msan/msan_allocator.c...
2013 May 25
2
[LLVMdev] compiler-rt tests in cmake?
...u need to wrap/replace system function (generally, from libc): > diff --git a/lib/lsan/lsan_allocator.cc b/lib/lsan/lsan_allocator.cc > index 9bf27b1..190dce8 100644 > --- a/lib/lsan/lsan_allocator.cc > +++ b/lib/lsan/lsan_allocator.cc > @@ -43,7 +43,7 @@ typedef CombinedAllocator<PrimaryAllocator, > AllocatorCache, > SecondaryAllocator> Allocator; > > static Allocator allocator; > -static THREADLOCAL AllocatorCache cache; > +static /*THREADLOCAL*/ AllocatorCache cache; > > void InitializeAllocator() { > allocator.Init(); > diff --git a/lib/ms...
2013 May 28
4
[LLVMdev] compiler-rt tests in cmake?
...m >> libc): >> > diff --git a/lib/lsan/lsan_allocator.cc b/lib/lsan/lsan_allocator.cc >> > index 9bf27b1..190dce8 100644 >> > --- a/lib/lsan/lsan_allocator.cc >> > +++ b/lib/lsan/lsan_allocator.cc >> > @@ -43,7 +43,7 @@ typedef CombinedAllocator<PrimaryAllocator, >> > AllocatorCache, >> > SecondaryAllocator> Allocator; >> > >> > static Allocator allocator; >> > -static THREADLOCAL AllocatorCache cache; >> > +static /*THREADLOCAL*/ AllocatorCache cache; >> > >> > void In...
2013 May 24
2
[LLVMdev] compiler-rt tests in cmake?
I blame this line in lsan/lit_tests/lit.cfg: # Setup attributes common for all compiler-rt projects. compiler_rt_lit_cfg = os.path.join(llvm_src_root, "projects", "compiler-rt", "lib", "lit.common.cfg") On Fri, May 24, 2013 at 2:53 PM, Alexey Samsonov <samsonov at google.com>wrote: > > On Fri, May 24,
2013 May 27
0
[LLVMdev] compiler-rt tests in cmake?
...function (generally, from > libc): > > diff --git a/lib/lsan/lsan_allocator.cc b/lib/lsan/lsan_allocator.cc > > index 9bf27b1..190dce8 100644 > > --- a/lib/lsan/lsan_allocator.cc > > +++ b/lib/lsan/lsan_allocator.cc > > @@ -43,7 +43,7 @@ typedef CombinedAllocator<PrimaryAllocator, > > AllocatorCache, > > SecondaryAllocator> Allocator; > > > > static Allocator allocator; > > -static THREADLOCAL AllocatorCache cache; > > +static /*THREADLOCAL*/ AllocatorCache cache; > > > > void InitializeAllocator() { > >...
2013 May 29
0
[LLVMdev] compiler-rt tests in cmake?
...t;>> > diff --git a/lib/lsan/lsan_allocator.cc b/lib/lsan/lsan_allocator.cc >>> > index 9bf27b1..190dce8 100644 >>> > --- a/lib/lsan/lsan_allocator.cc >>> > +++ b/lib/lsan/lsan_allocator.cc >>> > @@ -43,7 +43,7 @@ typedef CombinedAllocator<PrimaryAllocator, >>> > AllocatorCache, >>> > SecondaryAllocator> Allocator; >>> > >>> > static Allocator allocator; >>> > -static THREADLOCAL AllocatorCache cache; >>> > +static /*THREADLOCAL*/ AllocatorCache cache; >>>...
2013 May 29
0
[LLVMdev] compiler-rt tests in cmake?
...t;>> > diff --git a/lib/lsan/lsan_allocator.cc b/lib/lsan/lsan_allocator.cc >>> > index 9bf27b1..190dce8 100644 >>> > --- a/lib/lsan/lsan_allocator.cc >>> > +++ b/lib/lsan/lsan_allocator.cc >>> > @@ -43,7 +43,7 @@ typedef CombinedAllocator<PrimaryAllocator, >>> > AllocatorCache, >>> > SecondaryAllocator> Allocator; >>> > >>> > static Allocator allocator; >>> > -static THREADLOCAL AllocatorCache cache; >>> > +static /*THREADLOCAL*/ AllocatorCache cache; >>>...
2013 May 29
2
[LLVMdev] compiler-rt tests in cmake?
...diff --git a/lib/lsan/lsan_allocator.cc b/lib/lsan/lsan_allocator.cc >>>> > index 9bf27b1..190dce8 100644 >>>> > --- a/lib/lsan/lsan_allocator.cc >>>> > +++ b/lib/lsan/lsan_allocator.cc >>>> > @@ -43,7 +43,7 @@ typedef CombinedAllocator<PrimaryAllocator, >>>> > AllocatorCache, >>>> > SecondaryAllocator> Allocator; >>>> > >>>> > static Allocator allocator; >>>> > -static THREADLOCAL AllocatorCache cache; >>>> > +static /*THREADLOCAL*/ AllocatorC...
2013 May 29
4
[LLVMdev] compiler-rt tests in cmake?
.../lsan/lsan_allocator.cc b/lib/lsan/lsan_allocator.cc >>>>> > index 9bf27b1..190dce8 100644 >>>>> > --- a/lib/lsan/lsan_allocator.cc >>>>> > +++ b/lib/lsan/lsan_allocator.cc >>>>> > @@ -43,7 +43,7 @@ typedef CombinedAllocator<PrimaryAllocator, >>>>> > AllocatorCache, >>>>> > SecondaryAllocator> Allocator; >>>>> > >>>>> > static Allocator allocator; >>>>> > -static THREADLOCAL AllocatorCache cache; >>>>> > +static /*...
2013 May 29
0
[LLVMdev] compiler-rt tests in cmake?
...diff --git a/lib/lsan/lsan_allocator.cc b/lib/lsan/lsan_allocator.cc >>>> > index 9bf27b1..190dce8 100644 >>>> > --- a/lib/lsan/lsan_allocator.cc >>>> > +++ b/lib/lsan/lsan_allocator.cc >>>> > @@ -43,7 +43,7 @@ typedef CombinedAllocator<PrimaryAllocator, >>>> > AllocatorCache, >>>> > SecondaryAllocator> Allocator; >>>> > >>>> > static Allocator allocator; >>>> > -static THREADLOCAL AllocatorCache cache; >>>> > +static /*THREADLOCAL*/ AllocatorC...
2013 May 30
0
[LLVMdev] compiler-rt tests in cmake?
...ator.cc b/lib/lsan/lsan_allocator.cc >>>>>> > index 9bf27b1..190dce8 100644 >>>>>> > --- a/lib/lsan/lsan_allocator.cc >>>>>> > +++ b/lib/lsan/lsan_allocator.cc >>>>>> > @@ -43,7 +43,7 @@ typedef CombinedAllocator<PrimaryAllocator, >>>>>> > AllocatorCache, >>>>>> > SecondaryAllocator> Allocator; >>>>>> > >>>>>> > static Allocator allocator; >>>>>> > -static THREADLOCAL AllocatorCache cache; >>>>...
2013 May 30
2
[LLVMdev] compiler-rt tests in cmake?
...an/lsan_allocator.cc >>>>>>> > index 9bf27b1..190dce8 100644 >>>>>>> > --- a/lib/lsan/lsan_allocator.cc >>>>>>> > +++ b/lib/lsan/lsan_allocator.cc >>>>>>> > @@ -43,7 +43,7 @@ typedef CombinedAllocator<PrimaryAllocator, >>>>>>> > AllocatorCache, >>>>>>> > SecondaryAllocator> Allocator; >>>>>>> > >>>>>>> > static Allocator allocator; >>>>>>> > -static THREADLOCAL AllocatorCache cac...
2013 May 30
0
[LLVMdev] compiler-rt tests in cmake?
...> >>>>>>> > index 9bf27b1..190dce8 100644 > >>>>>>> > --- a/lib/lsan/lsan_allocator.cc > >>>>>>> > +++ b/lib/lsan/lsan_allocator.cc > >>>>>>> > @@ -43,7 +43,7 @@ typedef CombinedAllocator<PrimaryAllocator, > >>>>>>> > AllocatorCache, > >>>>>>> > SecondaryAllocator> Allocator; > >>>>>>> > > >>>>>>> > static Allocator allocator; > >>>>>>> > -static THREA...
2013 May 30
5
[LLVMdev] compiler-rt tests in cmake?
...t;>>>>> > index 9bf27b1..190dce8 100644 >> >>>>>>> > --- a/lib/lsan/lsan_allocator.cc >> >>>>>>> > +++ b/lib/lsan/lsan_allocator.cc >> >>>>>>> > @@ -43,7 +43,7 @@ typedef CombinedAllocator<PrimaryAllocator, >> >>>>>>> > AllocatorCache, >> >>>>>>> > SecondaryAllocator> Allocator; >> >>>>>>> > >> >>>>>>> > static Allocator allocator; >> >>>>>>&gt...