OSDN Git Service

Revert "Revert "ART: Add ThreadGroup API support""
authorAndreas Gampe <agampe@google.com>
Mon, 16 Jan 2017 16:08:45 +0000 (16:08 +0000)
committerAndreas Gampe <agampe@google.com>
Tue, 17 Jan 2017 22:40:16 +0000 (14:40 -0800)
commitd18d9e2a94445d4b42e4bc6f0e642e6f76b4706d
tree86b1d2c3cd0a12161778109733eec5366ebabae2
parentce27739a1207c530c0ecebaefef80652f401f2d1
Revert "Revert "ART: Add ThreadGroup API support""

This reverts commit 87071bfb6c1b708bdfa2a5f91d4744667b3a0443.

Add an ObjectLock, which corresponds to the synchronized(this)
implementation on the Java side. Wait for the expected five
child threads in the root group before running the actual
child test.

Bug: 31455788
Change-Id: Ib7a065d6a11f06f0325e3a8db040629f3ca69407
Test: m test-art-host-run-test-925-threadgroups
12 files changed:
runtime/openjdkjvmti/Android.bp
runtime/openjdkjvmti/OpenjdkJvmTi.cc
runtime/openjdkjvmti/ti_threadgroup.cc [new file with mode: 0644]
runtime/openjdkjvmti/ti_threadgroup.h [new file with mode: 0644]
test/925-threadgroups/build [new file with mode: 0755]
test/925-threadgroups/expected.txt [new file with mode: 0644]
test/925-threadgroups/info.txt [new file with mode: 0644]
test/925-threadgroups/run [new file with mode: 0755]
test/925-threadgroups/src/Main.java [new file with mode: 0644]
test/925-threadgroups/threadgroups.cc [new file with mode: 0644]
test/Android.bp
test/Android.run-test.mk