Re: RFR: 8330606: Redefinition doesn't but should verify the new klass [v3]

2025-02-06 Thread Coleen Phillimore
On Fri, 15 Nov 2024 15:30:05 GMT, Coleen Phillimore 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. >> >> The fix for always verifying redefine

Re: RFR: 8330606: Redefinition doesn't but should verify the new klass [v3]

2025-02-05 Thread David Holmes
On Wed, 5 Feb 2025 14:04:18 GMT, Amit Kumar wrote: >> Thanks David and Johan for the reviews. > > Hi @coleenp, > > I am repeating the message from Theresa, since she is part of OpenJ9 and > can't accept OpenJDK Terms: > > > `serviceability/jvmti/RedefineClasses/RedefineVerifyError.java` I

Re: RFR: 8330606: Redefinition doesn't but should verify the new klass [v3]

2025-02-05 Thread Amit Kumar
On Thu, 21 Nov 2024 12:13:50 GMT, Coleen Phillimore wrote: >> Coleen Phillimore has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Reduce test, fix bug in verifier, move and add comments to >> is_eligible_for_verification. > > Thanks David

Re: RFR: 8330606: Redefinition doesn't but should verify the new klass [v3]

2024-11-21 Thread Coleen Phillimore
On Fri, 15 Nov 2024 15:30:05 GMT, Coleen Phillimore 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. >> >> The fix for always verifying redefine

Re: RFR: 8330606: Redefinition doesn't but should verify the new klass [v3]

2024-11-21 Thread Johan Sjölen
On Fri, 15 Nov 2024 15:30:05 GMT, Coleen Phillimore 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. >> >> The fix for always verifying redefine

Re: RFR: 8330606: Redefinition doesn't but should verify the new klass [v3]

2024-11-21 Thread Coleen Phillimore
On Thu, 21 Nov 2024 05:12:20 GMT, David Holmes wrote: >> The JVMTI code for redefinition returns JVMTI_ERROR_FAILS_VERIFICATION and >> not the pending exception to the caller. The agent eventually in >> java.instrument/share/native/libinstrument/JavaExceptions.c will recreate >> the VerifyErr

Re: RFR: 8330606: Redefinition doesn't but should verify the new klass [v3]

2024-11-20 Thread David Holmes
On Wed, 20 Nov 2024 12:52:45 GMT, Coleen Phillimore wrote: >> test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineVerifyError.java >> line 96: >> >>> 94: throw new RuntimeException("This should throw VerifyError"); >>> 95: } catch (VerifyError e) { >>> 96:

Re: RFR: 8330606: Redefinition doesn't but should verify the new klass [v3]

2024-11-20 Thread Coleen Phillimore
On Wed, 20 Nov 2024 12:23:09 GMT, Coleen Phillimore wrote: >> src/hotspot/share/oops/method.cpp line 339: >> >>> 337: int Method::validate_bci(int bci) const { >>> 338: // Called from the verifier, and should return -1 if not valid. >>> 339: return ((is_native() && bci == 0) || (!is_native()

Re: RFR: 8330606: Redefinition doesn't but should verify the new klass [v3]

2024-11-20 Thread Coleen Phillimore
On Wed, 20 Nov 2024 03:42:57 GMT, David Holmes wrote: >> Coleen Phillimore has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Reduce test, fix bug in verifier, move and add comments to >> is_eligible_for_verification. > > test/hotspot/jtre

Re: RFR: 8330606: Redefinition doesn't but should verify the new klass [v3]

2024-11-20 Thread Coleen Phillimore
On Wed, 20 Nov 2024 03:46:46 GMT, David Holmes wrote: >> Coleen Phillimore has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Reduce test, fix bug in verifier, move and add comments to >> is_eligible_for_verification. > > src/hotspot/share

Re: RFR: 8330606: Redefinition doesn't but should verify the new klass [v3]

2024-11-19 Thread David Holmes
On Fri, 15 Nov 2024 15:30:05 GMT, Coleen Phillimore 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. >> >> The fix for always verifying redefine

Re: RFR: 8330606: Redefinition doesn't but should verify the new klass [v3]

2024-11-19 Thread Coleen Phillimore
On Fri, 15 Nov 2024 15:30:05 GMT, Coleen Phillimore 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. >> >> The fix for always verifying redefine

Re: RFR: 8330606: Redefinition doesn't but should verify the new klass [v3]

2024-11-18 Thread Coleen Phillimore
On Fri, 15 Nov 2024 05:19:58 GMT, David Holmes wrote: >> Coleen Phillimore has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Reduce test, fix bug in verifier, move and add comments to >> is_eligible_for_verification. > > src/hotspot/share

Re: RFR: 8330606: Redefinition doesn't but should verify the new klass [v3]

2024-11-15 Thread Coleen Phillimore
> 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. Coleen Phillimore has updated the pull request incrementally with one additional co