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

JTREG: Clean up, use Reference.reachabilityFence instead of System.out.println

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 13
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc

      Description

      In many places System.out.println is used to keep a reference to an object, in those places Reference.reachabilityFence might be easier to understand.

      Some lines to search for where this is used:
      System.out.println(ref_from_stack);
      System.out.println(large);
      System.out.println(holder);
      System.out.println(o.toString());
      System.out.println(ref);
      System.out.println(lotsOfHumongousObjects + " " + alignmentFudge);
      System.out.println(x);
      System.out.println(obj);

      Also, take a look at System.err, might be more hits there.

        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: