summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEtienne Bergeron <etienneb@google.com>2016-07-18 19:33:05 +0000
committerEtienne Bergeron <etienneb@google.com>2016-07-18 19:33:05 +0000
commitd61042b5490ce4b65b0ec6a832b24bacf58af2e6 (patch)
tree89ad72e89c10eedddee275af0dc8074ad6f15b0a
parent8ff8fdf4d4e0b89640fda635ed791821e39a33b4 (diff)
downloadbcm5719-llvm-d61042b5490ce4b65b0ec6a832b24bacf58af2e6.tar.gz
bcm5719-llvm-d61042b5490ce4b65b0ec6a832b24bacf58af2e6.zip
[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 llvm-svn: 275887
-rw-r--r--compiler-rt/lib/interception/interception_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/interception/interception_win.cc b/compiler-rt/lib/interception/interception_win.cc
index 8977d59ac4f..13d42cfd3ab 100644
--- a/compiler-rt/lib/interception/interception_win.cc
+++ b/compiler-rt/lib/interception/interception_win.cc
@@ -294,7 +294,7 @@ struct TrampolineMemoryRegion {
uptr max_size;
};
-static const uptr kTrampolineScanLimitRange = 1 << 30; // 1 gig
+static const uptr kTrampolineScanLimitRange = 1 << 31; // 2 gig
static const int kMaxTrampolineRegion = 1024;
static TrampolineMemoryRegion TrampolineRegions[kMaxTrampolineRegion];
OpenPOWER on IntegriCloud