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: Resolved
  • Resolution: Fixed
  • Submitted: 2024-02-08
  • Updated: 2025-08-12
  • Resolved: 2025-08-05
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.
JDK 26
26 b10Fixed
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.

Comments
Changeset: d25b9bef Branch: master Author: Saranya Natarajan <snatarajan@openjdk.org> Committer: Damon Fenacci <dfenacci@openjdk.org> Date: 2025-08-05 08:39:47 +0000 URL: https://git.openjdk.org/jdk/commit/d25b9befe0a462b9785502806ad14e0a5f6b4320
05-08-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/26554 Date: 2025-07-30 13:38:37 +0000
31-07-2025