RFR: 8228604: StackMapFrames are missing from redefined class bytes of retransformed classes

David Holmes dholmes at openjdk.org
Fri Jan 27 02:16:16 UTC 2023


On Wed, 25 Jan 2023 04:14:24 GMT, Alex Menkov <amenkov at openjdk.org> wrote:

>I'd expect that at least java.util.Date and java.lang.ProcessBuilder have the same verification requirement.

Generally speaking yes - they are both loaded by bootstrap loader and so would both have verification disabled by default. Bt as you note the behaviour can change when CDS is involved and only one class gets dumped.

> But in Date has StackMapTable (starting from JDK12-b15), and ProcessBuilder doesn't has StackMapTable.

This seems odd, but not, IMO, in itself a bug. Perhaps @iklam  can comment on why we treat things differently during dumping.

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

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


More information about the hotspot-runtime-dev mailing list