History log of /art/test/036-finalizer/src/Main.java
Revision Date Author Comments
5ee9454dfee08a70dec62b0ed0fd4ad274274937 24-Feb-2015 Sebastien Hertz <shertz@google.com> Support compiling run-tests with jack

This CL adds support to compile run-test source files with jack. When
a test needs to rely on class files, we use jill to convert them to a
jack library.

We need to pass the full classpath to jack containing at least core
classes (like java.lang.Object). This means the Android tree must
have been compiled with jack first so we find all the necessary
classes.jack files.

Some tests still rely on dex files generated with the old toolchain.
We keep building them this way for the moment and will update them
later, when they get ready for Jack.

Also updates a few tests dealing with garbage collection to avoid a
situation where a reference can be retained by a local DEX register.

Bug: 19467889

(cherry picked from commit 19ac0276208f0afef6ba8a4ab34b74a59b8d11d7)

Change-Id: Ia5a989b83430ffe8298a869a1da970b756721bb0
bbb547994cafa049cc1c0b70e049e3833256b935 15-Oct-2014 Mathieu Chartier <mathieuc@google.com> Add more logging to finalization test

We now print which elements were not finalized then attempt a
sleep to see if the error is a race condition or a another error.

Bug: 17932313
Change-Id: I4d41abfff0fa6838dd513cf23821bb486305d74f
8cb030663ecd2e1939f5e2e0eddbb2ff57d1b8f1 13-Oct-2014 Mathieu Chartier <mathieuc@google.com> Make finalization test more robust

Moved some logic to its own function to prevent vregs keeping objects
live. Not sure if it fixes flaky test, can't reproduce.

Bug: 17932313
Change-Id: Ib9c70d954a9692d6529f6ac645c9d0e9f596e502
3a5fa5ed91bf76c32913fe8149a83ba4205aa0bf 04-Sep-2014 Mathieu Chartier <mathieuc@google.com> Add test case for runFinalization.

There was a bug causing runFinalization to return before recently
freed objects were finalized. This is a regression test for this bug.

Bug: 17381967
Change-Id: Ide6e2037685324423e83965fae3935f3e7f0aba6
d0dce52bc0d3c5081efe0901f9d2a3995b892bf2 20-Feb-2014 Brian Carlstrom <bdc@google.com> Try to make 036-finalizer less flaky by moving output to one thread

Bug: 13108062

(cherry picked from commit c849445e6f1c336a7e8024310d9abfc8891244b8)

Change-Id: If3977d056637f47ed50c486e35cb3fd5b805ea28
c849445e6f1c336a7e8024310d9abfc8891244b8 20-Feb-2014 Brian Carlstrom <bdc@google.com> Try to make 036-finalizer less flaky by moving output to one thread

Bug: 13108062
Change-Id: I946044d007dda4efa85794e2361ecb2ce102be64
7befd0e35bbed32b90bc0c8b6d3fa8bd612f5506 04-Feb-2014 Mathieu Chartier <mathieuc@google.com> Update ART tests to handle new System.gc behavior

Changed calls from System.gc to Runtime.getRuntime.gc where it was
necessary.

Required for:
https://android-review.googlesource.com/#/c/80253/

Change-Id: I2b0622585da54229a6248e95d40134b6d18598a9
2faa5f1271587cda765f26bcf2951065300a01ff 30-Jan-2012 Elliott Hughes <enh@google.com> Fix copyright headers.

Change-Id: I5b7bc76a370238d810d78522bd5531600746700f
5d1ac920fdaef5d4ec8f66bb734488cd9660b024 30-Sep-2011 jeffhao <jeffhao@google.com> Adding old unit tests to test suite.

These tests are copied straight over. They'll still run, but they're
using the old system.

Change-Id: If494519e52ddf858a9febfc55bdae830468cb3c8