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

Create (test) abstraction for allocating objects that is immune to removal by optimizations

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 14
    • Fix Version/s: 14
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Resolved In Build:
      b27

      Description

      In the test code today, to fool the optimizer, assignment to public static variables or Reference.reachabilityFence is used to force allocation of objects.

      Instead create a test library that explicitly does this and can be updated at a single place if the optimizer gets too good.

      Reference.reachabilityFence seems not strong enough for some soon to come array optimizations.

        Attachments

          Activity

            People

            Assignee:
            lkorinth Leo Korinth
            Reporter:
            lkorinth Leo Korinth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: