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

G1: Turn on compressed oops by default.

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • hs21
    • 7
    • hotspot
    • gc
    • b03
    • generic
    • generic
    • Verified

    Backports

      Description

        Whne the maximum heap size allows compressed oops to be turned on, the following code in arguments.cpp:

        #ifdef _LP64
          // Check that UseCompressedOops can be set with the max heap size allocated
          // by ergonomics.
          if (MaxHeapSize <= max_heap_for_compressed_oops()) {
        #if !defined(COMPILER1) || defined(TIERED)
            if (FLAG_IS_DEFAULT(UseCompressedOops) && !UseG1GC) {
              FLAG_SET_ERGO(bool, UseCompressedOops, true);
            }
        #endif

        turns off compressed oops when G1 is enabled.

        This is incorrect.

        Attachments

          Issue Links

            Activity

              People

                johnc John Cuthbertson
                johnc John Cuthbertson
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: