On Thu, 9 Mar 2023 09:36:28 GMT, Andrew Dinn <ad...@openjdk.org> wrote:

> Yes, I appreciate that `dynamic` can be derived from `initializationMethod` 
> -- and vice versa. However, I was approaching this semantically from the 
> opposite end. To me the primary characteristic that the user would be 
> interested in is whether the agent was loaded dynamically or on the command 
> line (whatever the type of agent). The corresponding fact, for a Java agent, 
> that it is entered, respectively, via method agentMain or preMain is a 
> derived (implementation) detail. Is there a reason to mention that detail?

That's a good point. The overall intent was to map what method was measured 
during initialization. That included native agent callbacks as well. It may be 
an unnecessary implementation detail and may restrict the possibility of 
growth.  It is probably a better design abstraction to leave out the specific 
method. I dropped the callback function for the native agent, but we should 
also do the same for JavaAgents.

-------------

PR: https://git.openjdk.org/jdk/pull/12923

Reply via email to