Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8251944

Add Shenandoah test config to compiler/gcbarriers/UnsafeIntrinsicsTest.java

    XMLWordPrintable

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b04

      Backports

        Description

        Add the Shenandoah block to compiler/gcbarriers/UnsafeIntrinsicsTest.java:

        diff -r 17f81aac4167 test/hotspot/jtreg/compiler/gcbarriers/UnsafeIntrinsicsTest.java
        --- a/test/hotspot/jtreg/compiler/gcbarriers/UnsafeIntrinsicsTest.java Tue Aug 18 12:46:33 2020 +0200
        +++ b/test/hotspot/jtreg/compiler/gcbarriers/UnsafeIntrinsicsTest.java Tue Aug 18 14:09:41 2020 +0200
        @@ -30,10 +30,21 @@
          * @requires vm.gc.Z
          * @library /test/lib
          * @run main/othervm -XX:+UseZGC -XX:+UnlockDiagnosticVMOptions -XX:+ZVerifyViews -XX:ZCollectionInterval=1 -XX:-CreateCoredumpOnCrash -XX:CompileCommand=dontinline,*::mergeImpl* compiler.gcbarriers.UnsafeIntrinsicsTest
          */
         
        +/*
        + * @test
        + * @key randomness
        + * @bug 8059022
        + * @modules java.base/jdk.internal.misc:+open
        + * @summary Validate barriers after Unsafe getReference, CAS and swap (GetAndSet)
        + * @requires vm.gc.Shenandoah
        + * @library /test/lib
        + * @run main/othervm -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:+ShenandoahVerifyOptoBarriers -XX:CompileCommand=dontinline,*::mergeImpl* compiler.gcbarriers.UnsafeIntrinsicsTest
        + */
        +
         package compiler.gcbarriers;
         
         import java.lang.reflect.Field;
         import java.util.ArrayList;
         import java.util.Random;

        There used to be failures in code like this, fixed in JDK-8255401. This change turns the test into regression test for it.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                shade Aleksey Shipilev
                Reporter:
                shade Aleksey Shipilev
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: