Integrated: 8272131: PhaseMacroExpand::generate_slow_arraycopy crash when clone null CallProjections.fallthrough_ioproj
Hui Shi
hshi at openjdk.java.net
Wed Aug 11 02:03:32 UTC 2021
On Mon, 9 Aug 2021 14:06:47 GMT, Hui Shi <hshi at openjdk.org> wrote:
> This fix a crash in PhaseMacroExpand::generate_slow_arraycopy in following case, because arraycopy node's fallthrough_ioproj is NULL.
> - arraycopy has ArrayIndexOutOfBoundsException exception
> - arraycopy is before an infinite loop
>
> Fix is not cloning and replacing fallthrough_ioproj when it is NULL.
>
>
> static void foo() {
> try {
> Arrays.copyOfRange(src, -1, 128);
> do {
> } while (true);
> } catch (ArrayIndexOutOfBoundsException ex) {
> count++;
> }
> }
>
>
> New test is added.
> Test: Linux X64 tier1/tier2/tier3 release/fastdebug passed.
This pull request has now been integrated.
Changeset: 5350b990
Author: Hui Shi <hshi at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/5350b9901c6cebe5d40bbba9a31d1f26285b1cd6
Stats: 75 lines in 2 files changed: 71 ins; 0 del; 4 mod
8272131: PhaseMacroExpand::generate_slow_arraycopy crash when clone null CallProjections.fallthrough_ioproj
Reviewed-by: neliasso, xliu, thartmann
-------------
PR: https://git.openjdk.java.net/jdk/pull/5054
More information about the hotspot-compiler-dev
mailing list