OSDN Git Service

ART: Rewrite ParallelGC run-test
authorAndreas Gampe <agampe@google.com>
Sat, 26 Jul 2014 08:13:13 +0000 (01:13 -0700)
committerAndreas Gampe <agampe@google.com>
Sat, 26 Jul 2014 08:38:33 +0000 (01:38 -0700)
commit93f3da1578bf25d3bc8cf1d121477bf29b4d760a
tree379f11e1f9d52769e9b3b8cdb9d265b7830caffd
parent3bcac48f23094fa0f46315a080ec47fc368fd4c2
ART: Rewrite ParallelGC run-test

To better test what ParallelGC is intended to do, write a version
that will more fairly allocate objects between the threads, and
will let each thread OOM only once. Use a barrier to wait for
completion of all threads, and force a final GC by allocating some
more objects.

Bug: 16406852
Change-Id: I019ddc08515b9610c18d55280cd46cbe3ae3e5ac
test/114-ParallelGC/src/Main.java