summaryrefslogtreecommitdiffstats
path: root/src/runtime.h
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2012-08-01 15:51:58 -0700
committerBrian Carlstrom <bdc@google.com>2012-08-01 15:51:58 -0700
commit034f76b91225bea769d6185d7dad5e243af4ffa0 (patch)
tree56732a2b9847c5c791cb8f2336222ca9f853b277 /src/runtime.h
parentf2ba9cbe81b0762a7c8c659cdb86ba79b2dbbc40 (diff)
downloadart-034f76b91225bea769d6185d7dad5e243af4ffa0.zip
art-034f76b91225bea769d6185d7dad5e243af4ffa0.tar.gz
art-034f76b91225bea769d6185d7dad5e243af4ffa0.tar.bz2
Check for null thread groups at initialization
Change-Id: Ia6fffe9f416ac4bd2588016b99b172cf023f3c5d
Diffstat (limited to 'src/runtime.h')
-rw-r--r--src/runtime.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/runtime.h b/src/runtime.h
index c583ab1..544dcf4 100644
--- a/src/runtime.h
+++ b/src/runtime.h
@@ -141,16 +141,10 @@ class Runtime {
static void Abort();
// Returns the "main" ThreadGroup, used when attaching user threads.
- jobject GetMainThreadGroup() const {
- CHECK(main_thread_group_ != NULL || IsCompiler());
- return main_thread_group_;
- }
+ jobject GetMainThreadGroup() const;
// Returns the "system" ThreadGroup, used when attaching our internal threads.
- jobject GetSystemThreadGroup() const {
- CHECK(system_thread_group_ != NULL || IsCompiler());
- return system_thread_group_;
- }
+ jobject GetSystemThreadGroup() const;
// Attaches the calling native thread to the runtime.
void AttachCurrentThread(const char* thread_name, bool as_daemon, jobject thread_group);