trouble with java -Xpatch
Michael Rasmussen
michael.rasmussen at zeroturnaround.com
Fri Apr 8 13:50:05 UTC 2016
On 8 April 2016 at 15:58, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> I think it would be better if we could post CFLH events in the primordial
> phase but this is only possible if agents opt-in via a new capability, maybe
> can_generate_early_class_hook_events that would have to be added along with
> can_generate_all_class_hook_events. This would nicely complement
> can_generate_early_vmstart so that suitably prepared agents would get CLFH,
> CompiledMethodLoad and other events during VM startup.
So this would mean the agent would be able to get CLFH for _all_ classes,
even Object, String, Class etc, that are the very first to be loaded, and
potentially instrument the bytes for those classes as well?
Of course still following the rules about not introducing any new packages
etc at the time, since it would cause the module system verification to
fail (yeah, been there, done that).
If that is the case, that also seems like a good solution for me, which
should still give me access to what I'm looking for. Also, it would
basically mean that can_generate_all_class_hook_events would make CLFH
work similar to how it does on previous versions.
/Michael
More information about the jigsaw-dev
mailing list