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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 14
    • Affects Version/s: 14
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: