File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
compiler-rt/lib/sanitizer_common Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -119,12 +119,14 @@ class SizeClassAllocator64 {
119
119
VReport (3 , " Max user virtual address: 0x%zx\n " , MaxAddr);
120
120
VReport (3 , " Total space size for primary allocator: 0x%zx\n " ,
121
121
TotalSpaceSize);
122
- if (TotalSpaceSize >= MaxAddr)
122
+ if (TotalSpaceSize >= MaxAddr) {
123
+ // We can't easily adjust the requested heap size, because kSpaceSize is
124
+ // const (for optimization) and used throughout the code.
123
125
VReport (0 , " Error: heap size %zx exceeds max user virtual address %zx\n " ,
124
126
TotalSpaceSize, MaxAddr);
125
- // We can't easily adjust the requested heap size, because kSpaceSize is
126
- // const (for optimization) and used throughout the code.
127
-
127
+ VReport (
128
+ 0 , " Try using a kernel that allows a larger virtual address space \n " );
129
+ }
128
130
PremappedHeap = heap_start != 0 ;
129
131
if (PremappedHeap) {
130
132
CHECK (!kUsingConstantSpaceBeg );
You can’t perform that action at this time.
0 commit comments