RFR: 8302795: Shared archive failed on old version class with jsr bytecode [v2]
David Holmes
dholmes at openjdk.org
Thu Mar 2 01:20:11 UTC 2023
On Wed, 1 Mar 2023 23:31:00 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:
>> Please review this simple fix for avoid writing in to CDS archive during runtime while loading a shared old class (major_version < 50) with methods containg the jsr byte code.
>> Otherwise, JVM crashes with the following message in the hs err log:
>> `Error accessing class data sharing archive. Mapped file inaccessible during execution, possible disk/network problem.`
>>
>> Passed tiers 1 - 4 testing.
>
> Calvin Cheung has updated the pull request incrementally with one additional commit since the last revision:
>
> make the _methods array writable during dump time for old classes with jsr bytecode
I'm not familiar enough with CDS to review this in detail sorry. The approach sounds reasonable.
Thanks
-------------
PR: https://git.openjdk.org/jdk/pull/12752
More information about the hotspot-runtime-dev
mailing list