CDS and JVM-TI agent questions and crash
Michael Rasmussen
Michael.Rasmussen at roguewave.com
Thu Oct 18 17:40:45 UTC 2018
From: Volker Simonis <volker.simonis at gmail.com>
> @Michael: just wondering if it is possible to redefine
> j.l.Object/j.l.String/etc. later on after startup has been completed
> with the help of RedefineClass. Have you tried or woudln't this be
> useful for you anyway?
For Object we could (we only modify toString and equals there), but otherwise we do hierarchical or structural changes to basically all other classes, which is not possible with a redefineClass.
String we could probably do some very big workarounds for to support only redefine for, other primordial classes like Class and Thread we do need, and it simplifies our code a great deal to not have a list of excluded classes to handle differently from everything else.
We have yet to come up with a way where we can still support reloading of hierarchy without instrumenting these classes.
/Michael
More information about the hotspot-dev
mailing list