RFR: 8330606: Redefinition doesn't but should verify the new klass

Chris Plummer cjplummer at openjdk.org
Thu Nov 14 20:33:27 UTC 2024


On Thu, 14 Nov 2024 19:03:18 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> This change adds a couple of comments, removes some ancient bootstrapping code, and adds an old test that we call the verifier for redefining a class, even one in the bootclass path.
> Tested with tier1-4.

test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineVerifyError.java line 124:

> 122:         try {
> 123:             RedefineClassHelper.redefineClass(verifyErrorMirror, dump());
> 124:             VerifyError err = new VerifyError("verify me now");

Which of these two lines are expected to throw a VerifyError?

Is the VerifyError because you can't redefine VerifyError, or is there something invalid about the how the class is redefined?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22116#discussion_r1842849416


More information about the serviceability-dev mailing list