diff options
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r-- | runtime/runtime.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h index c155489eb1..10ee4aed90 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -291,13 +291,16 @@ class Runtime { jobject GetSystemClassLoader() const; // Attaches the calling native thread to the runtime. - bool AttachCurrentThread(const char* thread_name, bool as_daemon, jobject thread_group, - bool create_peer); + bool AttachCurrentThread(const char* thread_name, + bool as_daemon, + jobject thread_group, + bool create_peer, + bool should_run_callbacks = true); void CallExitHook(jint status); // Detaches the current native thread from the runtime. - void DetachCurrentThread() REQUIRES(!Locks::mutator_lock_); + void DetachCurrentThread(bool should_run_callbacks = true) REQUIRES(!Locks::mutator_lock_); void DumpDeoptimizations(std::ostream& os); void DumpForSigQuit(std::ostream& os); |