How mature is java.lang.instrument?

I will be working on a project for a toolkit for a relatively complex Java application, and I plan to use java.lang.instrument to connect to the JVM and override the classes before loading them.

How do you feel about this package? Is this supported in the JVM? Does it work well with Hotspot?

Thank!

+3
source share
2 answers

java.lang.instrument is used by many very popular software structures and pieces, including:

  • Aspectj
  • Jrebel
  • JProfiler
  • Java profile extensions themselves

which led me to the conclusion that it saves on usage. (Maybe not in your case, but it was not a question).

HotSpot .

+1
0

Source: https://habr.com/ru/post/1743666/


All Articles