RFR: JDK-8293410: assert(ptr != top()) failed: top should go hand-in-hand with stopped
Damon Fenacci
duke at openjdk.org
Fri Jan 13 07:22:55 UTC 2023
The JVM crashes with an assertion failure when array range checks are disabled using `-XX:-GenerateRangeChecks` and we're trying to access the array with an index outside its boundaries.
Such a behaviour is actually expected. What is unclear is the reason for having a _GenerateRangeChecks_ flag (basically to force not to perform range checks). An inspection of the change that introduced the flag didn't clarify its original use-case.
So, removing the `GenerateRangeChecks` flag.
-------------
Commit messages:
- JDK-8293410: assert(ptr != top()) failed: top should go hand-in-hand with stopped
Changes: https://git.openjdk.org/jdk/pull/11964/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11964&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8293410
Stats: 9 lines in 3 files changed: 0 ins; 3 del; 6 mod
Patch: https://git.openjdk.org/jdk/pull/11964.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/11964/head:pull/11964
PR: https://git.openjdk.org/jdk/pull/11964
More information about the hotspot-dev
mailing list