From f3d077373536c54824e4449759dff2f18369eab3 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 27 Sep 2018 16:24:17 +0000 Subject: 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 --- runtime/compiler_callbacks.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/compiler_callbacks.h') 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) {} -- cgit v1.2.3-59-g8ed1b