File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,11 @@ const uptr kAllocatorSpace = ~(uptr)0;
198198# endif // SANITIZER_APPLE
199199
200200# if defined(__powerpc64__)
201+ # if SANITIZER_AIX
202+ const uptr kAllocatorSize = 1ULL << 38 ; // 256G.
203+ # else
201204const uptr kAllocatorSize = 0x20000000000ULL ; // 2T.
205+ # endif
202206typedef DefaultSizeClassMap SizeClassMap;
203207# elif defined(__aarch64__) && SANITIZER_ANDROID
204208// Android needs to support 39, 42 and 48 bit VMA.
Original file line number Diff line number Diff line change @@ -288,6 +288,7 @@ class SizeClassAllocator32 {
288288 uptr ComputeRegionId (uptr mem) const {
289289 if (SANITIZER_SIGN_EXTENDED_ADDRESSES)
290290 mem &= (kSpaceSize - 1 );
291+ mem -= kSpaceBeg ;
291292 const uptr res = mem >> kRegionSizeLog ;
292293 CHECK_LT (res, kNumPossibleRegions );
293294 return res;
You can’t perform that action at this time.
0 commit comments