-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 8-shenandoah, 11-shenandoah, 13
-
Component/s: hotspot
-
b16
-
x86_64, aarch64
-
generic
Just like the arraycopy pre-barrier, the arraycopy post-barrier should check for count == 0 and HAS_FORWARDED gc-state in the generated stubs to avoid calling into the runtime at all in those cases. The runtime can then elide checking this.