JDK-8325482 : Test that distinct seeds produce distinct traces for compiler stress flags
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 23
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2024-02-08
  • Updated: 2025-02-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
compiler/debug/TestStress.java tests that various compiler stress options produce the same traces when given the same seed. However, we do not currently test that different seeds produce different traces. We should add such tests to ensure the stress options work as intended.

An earlier concern with adding such tests is that different seeds may sometimes incidentally produce the same trace. Therefore, tests of the form

  "Given two different seeds, ensure they produce different traces"

are fragile. Instead, we should use more robust tests of the form

  "Given N different seeds, make sure they do not all produce the same trace".

where we can tune the sensitivity using N.