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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 14
    • 14
    • hotspot
    • None
    • gc
    • b27

      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.

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

              Created:
              Updated:
              Resolved: