java - What is the purpose of sun.jvm.hotspot.HelloWorld? -
i stumbled upon class sun.jvm.hotspot.helloworld. source of class present since java 6. latest version can found here.
does know purpose of class? kind of developer playground class while developing jdk?
thanks in advance!
this file belongs hotspot serviceability agent.
serviceability agent kind of internal tool jvm developers. not part of public standard, not need covered tcks or separate test suites, though still has consistent actual version of hotspot. believe helloworld used jvm developers smoke test make sure serviceability agent works in basic cases. term "playground class" called fits perfectly.
frankly speaking, serviceability agent source base not maintained clean - may notice other leftover things there. there interesting stuff, e.g. hsdb or clhsdb tool analysing internal structures inside foreign jvm process.
Comments
Post a Comment