diff options
Diffstat (limited to 'runtime/java_vm_ext.h')
-rw-r--r-- | runtime/java_vm_ext.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/java_vm_ext.h b/runtime/java_vm_ext.h index b767b199f0..0510d6ab75 100644 --- a/runtime/java_vm_ext.h +++ b/runtime/java_vm_ext.h @@ -211,6 +211,8 @@ class JavaVMExt : public JavaVM { REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(Locks::jni_weak_globals_lock_); + void CheckGlobalRefAllocationTracking(); + Runtime* const runtime_; // Used for testing. By default, we'll LOG(FATAL) the reason. @@ -247,6 +249,10 @@ class JavaVMExt : public JavaVM { // TODO Maybe move this to Runtime. std::vector<GetEnvHook> env_hooks_; + size_t enable_allocation_tracking_delta_; + std::atomic<bool> allocation_tracking_enabled_; + std::atomic<bool> old_allocation_tracking_state_; + DISALLOW_COPY_AND_ASSIGN(JavaVMExt); }; |