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