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

Performance: jweak references not suitable for robust cache architecture

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Other
    • Icon: P4 P4
    • 12
    • 9
    • hotspot
    • None

      Performance: jweak references not suitable for robust cache architecture

      #1 Contrary to the expectations, jweak objects that are destroyed with DeleteWeakGlobalRef() take more GC time than alive one, but with dead objects (see attached test case)

      #2 DeleteWeakGlobalRef() does not actually free the memory

      #3 jweaks are processed single threaded by the GC

        1. Test.c
          0.9 kB
        2. Test.java
          2 kB
        3. Test.java
          2 kB

            kbarrett Kim Barrett
            gziemski Gerard Ziemski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: