RFR: 8346082: Output JVMTI agent information in hserr files [v4]

Matthias Baesken mbaesken at openjdk.org
Fri Dec 13 16:00:37 UTC 2024


On Fri, 13 Dec 2024 12:18:13 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

>> We should output more information about the JVMTI agents in the hserr file.
>
> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
> 
>   simplify coding

>if no agents are loaded, I would print "JVMTI agents: none" unconditionally. Makes it more obvious than just a missing entry; >that could be also an error.

Maybe after the while loop something like this ?


  bool first_agent = true;
  while (it.has_next()) {
      ...
  }
  **if (first_agent) st->print_cr("JVMTI agents: none");**

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

PR Comment: https://git.openjdk.org/jdk/pull/22706#issuecomment-2541756666


More information about the hotspot-dev mailing list