RFR: 8027429: Add diagnostic command VM.info to get hs_err print-out (NEW WEBREV) (original) (raw)

Frederic Parain frederic.parain at oracle.com
Fri Nov 13 12:08:51 UTC 2015


On 13/11/2015 05:52, David Holmes wrote:

Hi Coleen,

On 13/11/2015 7:41 AM, Coleen Phillimore wrote:

Hi, I should learn my lesson that Frederic, Bertrand and David are generally right. My restructuring went afoul of the STEP framework, and so I have made VMError::printvminfo() report the safe things that VMError::report() reports. Hopefully, this will address the concern about safety. It also allows us to remove the lock and static buffer in the VM.info function. The duplication isn't as bad as I thought and is a better solution than piggy backing from VMError::report(). Please review: open webrev at http://cr.openjdk.java.net/~coleenp/8027429.03/ bug link https://bugs.openjdk.java.net/browse/JDK-8027429 This looks good to me. A few small queries: 888 if (Universe::isfullyinitialized()) { I don't think it is possible to run a Dcmd before the VM is fully initialized.

It is not possible to invoke a Dcmd from outside of the VM (using the attachAPI or the PlatformMBeanServer) before the VM is fully initialized. However it is still possible to invoke a Dcmd directly from VM code. The Dcmd framework is initialized in Management::init(), which is called before universe_post_init() is invoked. I don't know exactly the dependencies of Universe::heap()->print_on_error(), but the test looks reasonable.

Fred

Frederic Parain - Oracle Grenoble Engineering Center - France Phone: +33 4 76 18 81 17 Email: Frederic.Parain at oracle.com



More information about the hotspot-runtime-dev mailing list