OSDN Git Service

Disable tests causing random failures with Enso and read barriers.
authorRoland Levillain <rpl@google.com>
Thu, 26 Nov 2015 10:30:44 +0000 (10:30 +0000)
committerRoland Levillain <rpl@google.com>
Thu, 26 Nov 2015 11:06:32 +0000 (11:06 +0000)
commit97290796b06fb49b88efee8b992b9b7defa53d00
treedb8d0d8999f59a91966d611487d0e6db46a61882
parentf6c0c593b81bbb0b1e0056556a315cfa0076ea75
Disable tests causing random failures with Enso and read barriers.

The new implementation of java.lang.reflect.Proxy (in
libcore/ojluni/src/main/java/java/lang/reflect/Proxy.java)
uses weak references (in getProxyClass0).  Two ART run-tests
(044-proxy and 005-annotations) rely on precise proxy
class names being outputted, but because weak references may
not be collected on time, there is sometimes a discrepancy
between expected and actual results in those tests.  This
issue seems to be triggereed more frequently with the
implementation of read barriers in the compiler, which
relies on a slow path always calling a runtime entry point.

This problem did not happen before Enso, as the old
implementation of getProxyClass
(libcore/libart/src/main/java/java/lang/reflect/Proxy.java)
did not use weak references (in getProxyClass).

Temporarily disable tests 044-proxy and 005-annotations to
make the art-read-barrier build turn green again.

Bug: 25838574
Change-Id: Ibfcdeb41572580c0e22b7688879e4b8b1cdb68e1
test/Android.run-test.mk