Integrated: JDK-8293410: Remove GenerateRangeChecks flag

Damon Fenacci duke at openjdk.org
Mon Jan 16 07:37:19 UTC 2023


On Thu, 12 Jan 2023 11:32:54 GMT, Damon Fenacci <duke at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 83f2c9a2
Author:    Damon Fenacci <damon.fenacci at oracle.com>
Committer: Tobias Hartmann <thartmann at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/83f2c9a2b290f11fbfb118a22c9667f26ac7c516
Stats:     9 lines in 3 files changed: 0 ins; 3 del; 6 mod

8293410: Remove GenerateRangeChecks flag

Reviewed-by: thartmann, chagedorn, kvn

-------------

PR: https://git.openjdk.org/jdk/pull/11964


More information about the hotspot-dev mailing list