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;
198
198
# endif // SANITIZER_APPLE
199
199
200
200
# if defined(__powerpc64__)
201
+ # if SANITIZER_AIX
202
+ const uptr kAllocatorSize = 1ULL << 38 ; // 256G.
203
+ # else
201
204
const uptr kAllocatorSize = 0x20000000000ULL ; // 2T.
205
+ # endif
202
206
typedef DefaultSizeClassMap SizeClassMap;
203
207
# elif defined(__aarch64__) && SANITIZER_ANDROID
204
208
// 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 {
288
288
uptr ComputeRegionId (uptr mem) const {
289
289
if (SANITIZER_SIGN_EXTENDED_ADDRESSES)
290
290
mem &= (kSpaceSize - 1 );
291
+ mem -= kSpaceBeg ;
291
292
const uptr res = mem >> kRegionSizeLog ;
292
293
CHECK_LT (res, kNumPossibleRegions );
293
294
return res;
You can’t perform that action at this time.
0 commit comments