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

Correct range checks for command-line options ArraycopySrcPrefetchDistance and ArraycopyDstPrefetchDistance

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 9, 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      Constrains for ArraycopySrcPrefetchDistance and ArraycopyDstPrefetchDistance XX options were added in the JDK 9 to the hotspot/src/share/vm/runtime/commandLineFlagConstraintsCompiler.cpp file.

      Accoring to the added constraints the only possible value for ArraycopySrcPrefetchDistance and ArraycopyDstPrefetchDistance options is 0. All other values are rejected.

      So, it seems that these options can be deprecated and removed in the future release. Also, corresponding code for these options also can be removed.

      zmajo: Instead of deprecating the two options, I'll change the constraints to allow a range for the flags.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                zmajo Zoltan Majo (Inactive)
                Reporter:
                ddmitriev Dmitry Dmitriev
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: