RFR: 8267982: enable peephole cause SIGSEGV in OopFlow::build_oop_map(Node*, int, PhaseRegAlloc*, int*)+0x238
Vladimir Kozlov
kvn at openjdk.java.net
Wed Jun 23 02:01:31 UTC 2021
On Tue, 1 Jun 2021 01:25:38 GMT, SUN Guoyun <github.com+40024232+sunny868 at openjdk.org> wrote:
> Hi all,
>
> Enable peephole can cause SIGSEGV sometimes in OopFlow::build_oop_map(Node*, int, PhaseRegAlloc*, int*)+0x238 , so must set a removed-flags for the peephole-nodes , to avoid be set-live-bit() and cause crash.
> Please review this trivial change.
>
> Thanks,
> Sun Guoyun
To have new flag field in base class Node is expensive (size wise). I suggest to add it to MachNode on which peephole is executed.
Otherwise the fix is correct.
-------------
Changes requested by kvn (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/4276
More information about the hotspot-compiler-dev
mailing list