diff options
Diffstat (limited to 'runtime/jit/jit_code_cache.h')
-rw-r--r-- | runtime/jit/jit_code_cache.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/runtime/jit/jit_code_cache.h b/runtime/jit/jit_code_cache.h index a4e2964499..a777ab740f 100644 --- a/runtime/jit/jit_code_cache.h +++ b/runtime/jit/jit_code_cache.h @@ -96,7 +96,11 @@ class JitCodeCache { std::string* error_msg); ~JitCodeCache(); - bool NotifyCompilationOf(ArtMethod* method, Thread* self, bool osr, bool prejit) + bool NotifyCompilationOf(ArtMethod* method, + Thread* self, + bool osr, + bool prejit, + JitMemoryRegion* region) REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!Locks::jit_lock_); @@ -213,7 +217,7 @@ class JitCodeCache { REQUIRES_SHARED(Locks::mutator_lock_); bool OwnsSpace(const void* mspace) const NO_THREAD_SAFETY_ANALYSIS { - return private_region_.OwnsSpace(mspace); + return private_region_.OwnsSpace(mspace) || shared_region_.OwnsSpace(mspace); } void* MoreCore(const void* mspace, intptr_t increment); @@ -276,7 +280,8 @@ class JitCodeCache { // is debuggable. void ClearEntryPointsInZygoteExecSpace() REQUIRES(!Locks::jit_lock_) REQUIRES(Locks::mutator_lock_); - JitMemoryRegion* GetPrivateRegion() { return &private_region_; } + JitMemoryRegion* GetCurrentRegion(); + bool IsSharedRegion(const JitMemoryRegion& region) const { return ®ion == &shared_region_; } private: JitCodeCache(); |