On Tue, 24 Jan 2023 00:16:10 GMT, Alex Menkov <amen...@openjdk.org> wrote:
> classFileParser drops stack map frames for JDK classes (when verification is > not required). > As a result JvmtiClassFileReconstituter cannot restore the attribute for > class redefinition. > Note that if the class is in CDS archive, the frames are restored from CDS, > so this issue affects only JDK classes which are not in CDS. > This code is old (from "initial load") and I don't understand the reason it > was implemented this way. > > Testing: tier1-tier6 This pull request has now been integrated. Changeset: 48155662 Author: Alex Menkov <amen...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/48155662af04bf7532799d507c23f6d5aa66a632 Stats: 353 lines in 3 files changed: 347 ins; 4 del; 2 mod 8228604: StackMapFrames are missing from redefined class bytes of retransformed classes Reviewed-by: cjplummer, sspitsyn ------------- PR: https://git.openjdk.org/jdk/pull/12155