RFR: 8267904: C2 crash when compile negative Arrays.copyOf length after loop [v2]

Hui Shi hshi at openjdk.java.net
Wed Jun 2 03:46:30 UTC 2021


On Tue, 1 Jun 2021 07:51:08 GMT, Roland Westrelin <roland at openjdk.org> wrote:

>> simple example
>> 
>>         byte[] result = new byte[len];   // first CastII in GraphKit::new_array
>>         System.arraycopy(path, begin, result, 0, result.length);  // second CastII  when processing "result.length"
>
> Could you use hash_find() instead? hash_find(prev) == hash_find(cur) maybe?

Done.

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

PR: https://git.openjdk.java.net/jdk/pull/4238


More information about the hotspot-compiler-dev mailing list