RFR: 8290780: AArch64: Crash in c2 nmethod running RunThese30M.java [v2]

Andrew Haley aph at openjdk.org
Mon Jul 25 12:41:12 UTC 2022


On Fri, 22 Jul 2022 19:31:54 GMT, Andrew Haley <aph at openjdk.org> wrote:

> > Looks good. To detect bad addresses at emit time, you could add some asserts that check is_valid_AArch64_address(target) in _adrp() and the patch code.
> 
> I'll look at that.

I'm not going to do that because I think I remember in some cases we have generated a fake "pointer" which is used as a base address. Such a value may not be a legal address. I don't know that there's anywhere we do that now, but it it is a reasonable-enough thing to do.

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

PR: https://git.openjdk.org/jdk/pull/9615


More information about the hotspot-dev mailing list