[9] RFR (XS): JDK-8151020: [TESTBUG] UnsafeGetStableArrayElement::testL_* fail intermittently

Aleksey Shipilev aleksey.shipilev at oracle.com
Wed Mar 2 12:07:14 UTC 2016


On 03/02/2016 02:51 PM, Vladimir Ivanov wrote:
> http://cr.openjdk.java.net/~vlivanov/8151020/webrev.00
> https://bugs.openjdk.java.net/browse/JDK-8151020
> 
> Some cases in UnsafeGetStableArrayElement are not reliable: there's no
> way to ensure that only some part of an OOP is 0 or not.

So the test fails when "new Object()" OOP has zeros in some bits, and
reading shorter bit stride from that OOP makes the test believe that the
field was "unchanged". Bummer.

> The fix is just to run the tests (hoping to trigger an assertion if
> anything goes wrong) w/o checking the results.

Looks good.

-Aleksey


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20160302/18f45330/signature.asc>


More information about the hotspot-compiler-dev mailing list