In the Valhalla project there's code to restrict nulls in object arrays. In the GC arraycopy barrier we there have to both do null checks in addition to the already existing cast checks. If one of these two failed the code needs to propagate this up through the callers to the code that asked to do the checks. There it will throw the suitable exception. Previously, it was enough to say success or failed, and a boolean was enough. Now we need three states. So the bool was replaced with an OopCopyResult enum.
I propose that we bring this over to the mainline to lower the diff between lworld and the mainline.
I propose that we bring this over to the mainline to lower the diff between lworld and the mainline.
- links to
-
Commit(master)
openjdk/jdk/53e77d21
-
Review(master)
openjdk/jdk/28850