RFR: 8302795: Shared archive failed on old version class with jsr bytecode

Calvin Cheung ccheung at openjdk.org
Wed Mar 1 23:31:03 UTC 2023


On Fri, 24 Feb 2023 23:28:14 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.

I have pushed a commit. The fix is make the _methods array writable during dump time for "old" classes with the jsr byte code.
Ran tiers 1 - 3 testing successfully.

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

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


More information about the hotspot-runtime-dev mailing list