RFR: JDK-8226878: zero crashes after JDK-8191278

Ao Qi aoqi at loongson.cn
Fri Jun 28 15:06:09 UTC 2019


On Fri, Jun 28, 2019 at 9:30 PM Aleksey Shipilev <shade at redhat.com> wrote:
>
> On 6/28/19 2:56 AM, Ao Qi wrote:
> >> Hold on. I think stubGenerator_zero.cpp should just return NULL when stub is not generated. It looks
> >> like a Zero-specific problem to return "fake" stubs when they are not actually generated. Like this:
> >>
> >> diff -r 91b38bfb9079 src/hotspot/cpu/zero/stubGenerator_zero.cpp
> >> --- a/src/hotspot/cpu/zero/stubGenerator_zero.cpp       Thu Jun 27 18:00:54 2019 +0800
> >> +++ b/src/hotspot/cpu/zero/stubGenerator_zero.cpp       Thu Jun 27 13:37:47 2019 +0200
> >> @@ -157,7 +157,9 @@
> >>
> >>      StubRoutines::_checkcast_arraycopy       = ShouldNotCallThisStub();
> >> -    StubRoutines::_unsafe_arraycopy          = ShouldNotCallThisStub();
> >>      StubRoutines::_generic_arraycopy         = ShouldNotCallThisStub();
> >>
> >> +    // Shared code tests for "NULL" to discover the stub is not generated.
> >> +    StubRoutines::_unsafe_arraycopy          = NULL;
> >> +
> >>      // We don't generate specialized code for HeapWord-aligned source
> >>      // arrays, so just use the code we've already generated
> >>
> >
> > I'm fine with this fix.
>
> Tad confused here. Are you preparing the updated RFR, or should I?

Updated: http://cr.openjdk.java.net/~aoqi/8226878/webrev.01/

I changed nothing, except copyright year.

>
> --
> Thanks,
> -Aleksey
>


More information about the hotspot-dev mailing list