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

Correct range checks for command-line options ArraycopySrcPrefetchDistance and ArraycopyDstPrefetchDistance

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P5
    • 10
    • 9, 10
    • hotspot
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: