JVMTI retransformation and addition of private methods

David Holmes david.holmes at oracle.com
Wed Feb 21 03:52:55 UTC 2018


Hi Karen,

On 21/02/2018 1:54 AM, Karen Kinnear wrote:
> Folks,
> 
> As part of the Valhalla EG discussions for JVMTI changes for nestmates (thank you Serguei and David),
> IBM brought up a request that we update the JVMTI documentation to reflect that we allow addition
> of private methods.
> 
> Is there a reason we do not document this? I’m inviting those who were involved at the time - please include
> others if needed.

This issue is tracked by:

https://bugs.openjdk.java.net/browse/JDK-8192936

"RI does not follow the JVMTI RedefineClasses spec that is too strict in 
the definition"

As I wrote there ... It is not at all clear how JDK-6404550 morphed into 
"Permit the adding or deleting of private final/static methods with 
redefine" - nor why those changes failed to make any change to the spec 
itself. It is also unclear whether the add/delete is restricted to 
final/static methods or any private method? I can see that the intent 
was to only allow something that would not perturb the vtable for 
existing instances.

--
David


> thanks,
> Karen
> 


More information about the serviceability-dev mailing list