diff options
Diffstat (limited to 'runtime/compiler_callbacks.h')
| -rw-r--r-- | runtime/compiler_callbacks.h | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/compiler_callbacks.h b/runtime/compiler_callbacks.h index b07043f5d7..d1a68615b1 100644 --- a/runtime/compiler_callbacks.h +++ b/runtime/compiler_callbacks.h @@ -36,6 +36,10 @@ class CompilerCallbacks {          SHARED_LOCKS_REQUIRED(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; +    protected:      CompilerCallbacks() { }  };  |