[jdk17u-dev] RFR: 8300079: SIGSEGV in LibraryCallKit::inline_string_copy due to constant NULL src argument [v2]
Goetz Lindenmaier
goetz at openjdk.org
Wed Apr 26 12:01:00 UTC 2023
> I backport this for parity with 17.0.8-oracle.
>
> Does not apply because
> "8275201: C2: hide klass() accessor from TypeOopPtr and typeKlassPtr subclasses" is not in 17.
>
> The problem fixed by this change is that isa_aryptr() can return NULL.
> I checked all occurances of this call. Many of them are checked for NULL which
> was missing in head before this fix. For inline_string_copy() the check was missing
> in 17.
> For many of the other checks, the result is assigned to a variable and then checked,
> but then isa_aryptr() is called again. I changed the code to use the checked variable.
> I hope this makes clear that the check may not be removed :)
Goetz Lindenmaier has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last revision:
Backport 45e4e00981ef8b4bf143afce0889698319273c1d
-------------
Changes:
- all: https://git.openjdk.org/jdk17u-dev/pull/1297/files
- new: https://git.openjdk.org/jdk17u-dev/pull/1297/files/26d9fb0b..80188659
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=1297&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=1297&range=00-01
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk17u-dev/pull/1297.diff
Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/1297/head:pull/1297
PR: https://git.openjdk.org/jdk17u-dev/pull/1297
More information about the jdk-updates-dev
mailing list