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

[TESTBUG] update vm/compiler/CodeCacheInfo fails with some versions of grep

    Details

    • Subcomponent:
    • Resolved In Build:
      b05

      Description

      The regex pattern to determine if code cache segmentation is turned on does not work with some versions of grep. See for example this run:

      http://aurora.ru.oracle.com/functional/faces/RunDetails.xhtml?names=590676.JAVASE.NIGHTLY.VM.Comp_Baseline-Tiered.2014-09-19-101
      http://scaaa008.us.oracle.com:9502/runs%2F590676.JAVASE.NIGHTLY.VM.Comp_Baseline-Tiered.2014-09-19-101/results/ResultDir/CodeCacheInfo/CodeCacheInfo.log

      Code cache segmentation is turned on and the SegmentedCodeCache flag shows true but grep returns 0.

      On the failing machine:
        echo ' bool SegmentedCodeCache := true ' | grep -c '\sSegmentedCodeCache\s*:\?=\s*true'
        0

      On my local machine:
        echo ' bool SegmentedCodeCache := true ' | grep -c '\sSegmentedCodeCache\s*:\?=\s*true'
        1

      I would suggest to use something like grep -c "SegmentedCodeCache.*=.*true".

      Other runs that fail:
      http://aurora.ru.oracle.com/functional/faces/RunDetails.xhtml?names=590676.JAVASE.NIGHTLY.VM.Comp_Baseline-Tiered.2014-09-19-64
      http://aurora.ru.oracle.com/functional/faces/RunDetails.xhtml?names=590676.JAVASE.NIGHTLY.VM.Comp_Baseline-Tiered.2014-09-19-138

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pchistyakov Pavel Chistyakov (Inactive)
                Reporter:
                thartmann Tobias Hartmann
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: