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

-XX:+UseCountedLoopSafepoints alone doesn't disable strip mining with G1

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b36

      Backports

        Description

        There's a small inconsistency in the way UseCountedLoopSafepoints/LoopStripMiningIter is treated for G1:
        default is +UseCountedLoopSafepoints, LoopStripMiningIter=1000
        but with:
        java -XX:+UseCountedLoopSafepoint
        a message is printed:
        When counted loop safepoints are enabled, LoopStripMiningIter must be at least 1 (a safepoint every 1 iteration): setting it to 1
        but LoopStripMiningIter is set to 1000
        So if you want the pre loop strip mining behaviour of +UseCountedLoopSafepoint, you need to pass -XX:+UseCountedLoopSafepoint -XX:LoopStripMiningIter=1

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  roland Roland Westrelin
                  Reporter:
                  roland Roland Westrelin
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: