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

Performance: jweak references not suitable for robust cache architecture

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: