On Fri, 12 Dec 2025 09:16:44 GMT, Stefan Karlsson <[email protected]> wrote:

> The lworld branch has support for null-restricted arrays, and to support this 
> code has been adjacent to the code that perform array copy check casts. The 
> code that performs the check casts used to be located inside the GC access 
> barriers, but the code that finally threw exceptions were located in the 
> runtime code. In the lworld branch the code that throws the check cast 
> exception and the new null pointer exception has been moved into the GC 
> access barriers.
> 
> I propose that we revert back to the old style where the exception throwing 
> was somewhat decoupled from the GC access barriers.

This pull request has now been integrated.

Changeset: c661c30f
Author:    Stefan Karlsson <[email protected]>
Committer: David Simms <[email protected]>
URL:       
https://git.openjdk.org/valhalla/commit/c661c30fff54fa4a83f5c10cda24bf4a9b031632
Stats:     312 lines in 14 files changed: 88 ins; 62 del; 162 mod

8373567: [lworld] Move array copy exception throwing out of GC barriers

Reviewed-by: aboldtch, tschatzl, fparain, heidinga

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

PR: https://git.openjdk.org/valhalla/pull/1792

Reply via email to