OSDN Git Service

ART: Add currentThread cutout to Unstarted Runtime
authorAndreas Gampe <agampe@google.com>
Tue, 14 Feb 2017 02:52:10 +0000 (18:52 -0800)
committerAndreas Gampe <agampe@google.com>
Wed, 15 Feb 2017 01:43:52 +0000 (17:43 -0800)
commitbad529da18122c7044fbfd7d56153535d34367b1
tree44982bc9ec345be1e96ba6c66e22e5c08fcaed56
parent1fb51268b78f55b345ea951a73eae5194ec71b91
ART: Add currentThread cutout to Unstarted Runtime

Add currentThread() and getThreadState() cutouts to the unstarted
runtime to allow further compile-time initialization. The cutouts
are protected by call-stack checks.

Add tests.

Bug: 34956610
Test: m test-art-host-gtest-unstarted_runtime_test
Change-Id: I6335bccda8bedae90376fc7c47b303576f1ac78b
runtime/interpreter/unstarted_runtime.cc
runtime/interpreter/unstarted_runtime_list.h
runtime/interpreter/unstarted_runtime_test.cc
runtime/runtime.h
runtime/thread.cc
runtime/thread.h