Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit f49accb

Browse files
committed
[compiler-rt] Allow trampoline allocation further and 1 gig.
Summary: The trampoline allocation limits the memory scanning to 1 gig. There is an unittest that is allocating a large object which make it impossible to the trampoline allocator to find a free spot. see shadow_mapping_failures: ``` char bigchunk[1 << 30]; ``` This patch is not fixing the unittest but it's fixing it's infinite loop behavior. Reviewers: rnk Subscribers: llvm-commits, wang0109, chrisha Differential Revision: https://reviews.llvm.org/D22471 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@275887 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent a355ad7 commit f49accb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/interception/interception_win.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ struct TrampolineMemoryRegion {
294294
uptr max_size;
295295
};
296296

297-
static const uptr kTrampolineScanLimitRange = 1 << 30; // 1 gig
297+
static const uptr kTrampolineScanLimitRange = 1 << 31; // 2 gig
298298
static const int kMaxTrampolineRegion = 1024;
299299
static TrampolineMemoryRegion TrampolineRegions[kMaxTrampolineRegion];
300300

0 commit comments

Comments
 (0)