summaryrefslogtreecommitdiff
path: root/runtime/compiler_callbacks.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2018-09-27 16:24:17 +0000
committer Vladimir Marko <vmarko@google.com> 2018-09-27 16:24:17 +0000
commitf3d077373536c54824e4449759dff2f18369eab3 (patch)
treee00d19a342ff429fc514bf70bf52ff005a00911c /runtime/compiler_callbacks.h
parent5ad79d85d77a42456728897ac3e2e7d4530e618e (diff)
Revert "Load boot image at a random address."
This reverts commit 5ad79d85d77a42456728897ac3e2e7d4530e618e. Reason for revert: Breaks GSS garbage collection config. Bug: 77856493 Change-Id: Ifa39966ac2470154f8ba093de4804689d545219b
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) {}