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

JVM/TI scenarios/allocation/AP01/ap01t001 fails intermittently with extra ObjectFree event

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 16
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
      None

      Description

      When run with -XX:+UseZGC -Xmx2g -XX:ZCollectionInterval=0.01, the test

      vmTestbase/nsk/jvmti/scenarios/allocation/AP01/ap01t001/TestDescription.java
      intermittently fails with:

      nsk.share.Fake_Exception_for_RULE_Creation: (ap01t001.cpp:67) Received unexpected number of ObjectFree events: 7
              at nsk_lvcomplain(nsk_tools.cpp:172)
      # ERROR: ap01t001.cpp, 67: Received unexpected number of ObjectFree events: 7
              expected number: 6

      This looks like the ObjectFree event for the main class is posted before the VMDeath event is posted, which seems like it should be ok. The other events are the array of the main class.

      void JNICALL
      VMDeath(jvmtiEnv *jvmti_env, JNIEnv *env) {
          NSK_DISPLAY0("VMDeath event received\n");
          if (obj_free != (EXP_OBJ_NUMBER - 1)) {
              NSK_COMPLAIN2(
                  "Received unexpected number of ObjectFree events: %d\n"
                  "\texpected number: %d\n",
                  obj_free, (EXP_OBJ_NUMBER - 1));
              exit(95 + STATUS_FAILED);
          }
          exit(95 + PASSED);
      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: