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

Stress mode to randomly execute unstable if traps

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 11, 17, 21, 24
    • hotspot
    • b17

      Unstable if traps are supposed to be taken rarely. Below patch introduces a 'StressUnstableIfTraps' flag that forces unstable if traps to be taken randomly and thus potentially triggering intermittent bugs. It works by adding another if before the unstable if that checks a "random" condition at runtime and then either takes the trap or executes the original, unstable if:
      https://github.com/openjdk/jdk/compare/master...TobiHartmann:jdk:JDK-8335334

      The stress option also has the nice side effect of triggering re-compilation of methods that would otherwise not be re-compiled (see JDK-8335843).

            thartmann Tobias Hartmann
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: