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

java/lang/ref/ReferenceEnqueuePending.java: some references aren't queued

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 8u60, 9
    • hotspot
    • b107

      java/lang/ref/ReferenceEnqueuePending.java
      ----------System.out:(5/269)----------
      I must write 999 to prevent compiler optimizations.
      The following numbers were not found in the reference queue:
      0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38
      40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78
      80 82 84 86 88 90 92 94 96 98
      ----------System.err:(14/968)----------
      java.lang.RuntimeException: TEST FAILED: only 949 reference objects have been queued out of 999
      at ReferenceEnqueuePending.checkResult(ReferenceEnqueuePending.java:148)
      at ReferenceEnqueuePending.main(ReferenceEnqueuePending.java:103)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:745)

            kbarrett Kim Barrett
            vlivanov Vladimir Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: