JDK-8302262 : Remove -XX:SuppressErrorAt develop option
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-02-10
  • Updated: 2023-02-27
  • Resolved: 2023-02-15
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 21
21 b10Fixed
Related Reports
Blocks :  
Description
Remove the -XX:SuppressErrorAt=cstr develop option.  This option is used to ignore failed assertions at the indicated places, continuing execution as if the assertion had passed or not been present.

Continuing from a failed assertion is often problematic.  The following code likely really does depend on the asserted state for correct execution.  Some of the possible behaviors include crashes and computing incorrect results.

Also, this feature is blocking JDK-8302189.

This option exists from the very early days of HotSpot.

A use-case for this feature is using a debug build while attempting to reproduce a product failure. The idea is to skip the assertion failure and see if things fail in the same manner as the product failure. This could also be accomplished by rebuilding the debug build with the failing assertion commented out. That used to be a fairly unpleasant prospect because build times were so long.  That's *much* less of a problem now.  And a failing assertion is likely a pretty good indication of the problem anyway.

Comments
Changeset: f1d76fa9 Author: Kim Barrett <kbarrett@openjdk.org> Date: 2023-02-15 00:44:02 +0000 URL: https://git.openjdk.org/jdk/commit/f1d76fa92501e45f25a7d33d8c5eee7ef60973eb
15-02-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/12521 Date: 2023-02-11 03:17:38 +0000
11-02-2023