RFR: 8302795: Shared archive failed on old version class with jsr bytecode
Calvin Cheung
ccheung at openjdk.org
Tue Feb 28 00:29:04 UTC 2023
On Mon, 27 Feb 2023 02:16:16 GMT, David Holmes <dholmes at openjdk.org> wrote:
>
> The solution would seem to be a choice of: a) don't rewrite the class; or b) don't archive it
>
> The solution presented here seems to be (a) but I thought we had to rewrite classes with JSR bytecodes ???
Option b is harder to do because we currently cannot link old classes during dump time. So we can't simply do the following check to see is a jsr bytecode is present during dump time.
`m->has_jsrs()`
In order to do the above check during dump time, for an "old" class, we'll need to check all the methods and for each method check all the byte codes and see if a jsr bytecode is present.
I'll try to implement the above.
-------------
PR: https://git.openjdk.org/jdk/pull/12752
More information about the hotspot-runtime-dev
mailing list