diff options
author | Andreas Gampe <agampe@google.com> | 2017-06-01 09:17:34 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2017-06-01 12:59:13 -0700 |
commit | 513061a792b22c417c938d31c19581390709561c (patch) | |
tree | 80b4fdce03711170626aa5640d07b07de4a326a1 /runtime/thread-inl.h | |
parent | 38c4ae5f4c5a033b7a7441032f39ea58f5772d4c (diff) | |
download | art-513061a792b22c417c938d31c19581390709561c.tar.gz art-513061a792b22c417c938d31c19581390709561c.tar.bz2 art-513061a792b22c417c938d31c19581390709561c.zip |
ART: Clean up thread.h and thread_list.h
Remove dependency on stack.h and gc_root.h. Remove unused object
callbacks include. Factor out ManagedStack into its own set of files.
Fix up users of transitive includes.
Test: m test-art-host
Change-Id: I01286c43d8c7710948c161b1348faabb05922e59
Diffstat (limited to 'runtime/thread-inl.h')
-rw-r--r-- | runtime/thread-inl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/thread-inl.h b/runtime/thread-inl.h index 5c65da6d41..83e0337192 100644 --- a/runtime/thread-inl.h +++ b/runtime/thread-inl.h @@ -29,6 +29,7 @@ #include "base/mutex-inl.h" #include "base/time_utils.h" #include "jni_env_ext.h" +#include "managed_stack-inl.h" #include "obj_ptr.h" #include "runtime.h" #include "thread_pool.h" @@ -384,6 +385,14 @@ inline bool Thread::ModifySuspendCount(Thread* self, } } +inline ShadowFrame* Thread::PushShadowFrame(ShadowFrame* new_top_frame) { + return tlsPtr_.managed_stack.PushShadowFrame(new_top_frame); +} + +inline ShadowFrame* Thread::PopShadowFrame() { + return tlsPtr_.managed_stack.PopShadowFrame(); +} + } // namespace art #endif // ART_RUNTIME_THREAD_INL_H_ |