RFR(S): 8200282: Serializing non-zero byte as zero to ByteBuffer

Vladimir Kozlov vladimir.kozlov at oracle.com
Wed Jul 11 18:59:17 UTC 2018


Rolland can you make a boolean variable for (alias_idx_src == alias_idx_dest) to use in all this 
cases? Otherwise changes are good.

Thanks,
Vladimir

On 7/11/18 12:37 AM, Roland Westrelin wrote:
> 
> http://cr.openjdk.java.net/~roland/8200282/webrev.00/
> 
> When an arraycopy is converted to a series of loads/stores for small
> copies, most of the loads use the wrong memory slice if the source and
> destination are not on the same slice. That happens when EA allocated
> its own slice to a non escaping allocation.
> 
> This bug is not targeted for 11 but I think it should be pushed to 11 as
> it's not too risky and can lead to incorrect code execution.
> 
> Roland.
> 


More information about the hotspot-compiler-dev mailing list