summaryrefslogtreecommitdiff
path: root/runtime/compiler_callbacks.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2018-09-27 16:40:03 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-09-27 16:40:03 +0000
commit233b572a940431a94a1790750afdceab2d6f4fde (patch)
tree85360608b41023a895d1fe1a933edec6311054bf /runtime/compiler_callbacks.h
parent62741139ea636682568237417c3bda84dfd1606b (diff)
parentf3d077373536c54824e4449759dff2f18369eab3 (diff)
Merge "Revert "Load boot image at a random address.""
Diffstat (limited to 'runtime/compiler_callbacks.h')
-rw-r--r--runtime/compiler_callbacks.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/compiler_callbacks.h b/runtime/compiler_callbacks.h
index b29eb7050d..6855dcdb2b 100644
--- a/runtime/compiler_callbacks.h
+++ b/runtime/compiler_callbacks.h
@@ -51,6 +51,10 @@ class CompilerCallbacks {
REQUIRES_SHARED(Locks::mutator_lock_) = 0;
virtual void ClassRejected(ClassReference ref) = 0;
+ // Return true if we should attempt to relocate to a random base address if we have not already
+ // done so. Return false if relocating in this way would be problematic.
+ virtual bool IsRelocationPossible() = 0;
+
virtual verifier::VerifierDeps* GetVerifierDeps() const = 0;
virtual void SetVerifierDeps(verifier::VerifierDeps* deps ATTRIBUTE_UNUSED) {}