diff options
author | Andreas Gampe <agampe@google.com> | 2017-05-11 22:30:38 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2017-05-15 18:21:49 -0700 |
commit | 2ac67d526eb348019433138b04eb1473d45cb0f4 (patch) | |
tree | ccc6e87b8f7694c14e686c0b024dcb1523107405 /runtime/runtime.h | |
parent | c4209f024a74f1aaf7a7c2d16482b5458ae0c687 (diff) | |
download | art-2ac67d526eb348019433138b04eb1473d45cb0f4.tar.gz art-2ac67d526eb348019433138b04eb1473d45cb0f4.tar.bz2 art-2ac67d526eb348019433138b04eb1473d45cb0f4.zip |
ART: Reserve sentinel fault page
Attempt to reserve a single page on startup that contains addresses we
use for clobbering.
Test: m test-art-host
Change-Id: Ibc0a29c99ff3ff42290877faaadcb914234024e4
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r-- | runtime/runtime.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h index 4931382e55..2e3b8d7bae 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -81,6 +81,7 @@ class DexFile; class InternTable; class JavaVMExt; class LinearAlloc; +class MemMap; class MonitorList; class MonitorPool; class NullPointerHandler; @@ -942,6 +943,8 @@ class Runtime { std::atomic<uint32_t> deoptimization_counts_[ static_cast<uint32_t>(DeoptimizationKind::kLast) + 1]; + std::unique_ptr<MemMap> protected_fault_page_; + DISALLOW_COPY_AND_ASSIGN(Runtime); }; std::ostream& operator<<(std::ostream& os, const Runtime::CalleeSaveType& rhs); |