On 04/04/2016 12:47, Michael Rasmussen wrote:
But retransform in this phase would still be subject to the same
limitations about no structural changes I assume? Meaning no adding of
members etc.
My preferred solution would still be if adding (and changing) Xpatch
would be possible during OnLoad, as that should solve all my problems.
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.
-Alan