RFR: 8007806: Need a Throwables performance counter (original) (raw)

David Holmes david.holmes at oracle.com
Sun Feb 24 15:03:07 PST 2013


I'm getting very confused regarding the different threads on this. But this webrev:

http://cr.openjdk.java.net/~nloodin/exception-tracing/webrev.01/

shows the intrusive event tracing that I'm sure we said we would grudgingly accept for 7u but not for JDK 8.

David

On 23/02/2013 2:16 AM, Jason Mehrens wrote:

From this webrev http://cr.openjdk.java.net/~nloodin/exception-tracing/webrev.01/ you are counting the number of throwables constructed. You might want to change the name to reflect that. I don't think anyone would want to write a spec for how many throwables are thrown given that a throwable can be wrapped, suppressed, rethrown, etc. Jason

> Date: Fri, 22 Feb 2013 14:10:02 +0100 > From: nils.loodin at oracle.com > To: core-libs-dev at openjdk.java.net; serviceability-dev at openjdk.java.net > Subject: Fwd: RFR: 8007806: Need a Throwables performance counter > > Does anyone have anything strongly against this? This is a small change > just to add a performance counter, the code to increment it and read it > will live in other parts of the code and be a part of a larger separate > commit. > > Alan Bateman gave the response that the name was inappropriate, but I > don't really have a better alternative, but neither do I have strong > opinions, so feedback would be appreciated! > > How about > "sun.throwables.thrownThrowables" ? > > Regards, > Nils Loodin > > > -------- Original Message -------- > Subject: RFR: 8007806: Need a Throwables performance counter > Date: Fri, 08 Feb 2013 18:10:02 +0100 > From: Nils Loodin <nils.loodin at oracle.com> > To: core-libs-dev at openjdk.java.net, serviceabilitydevwwgrp > <serviceabilitydevwwgrp at oracle.com> > > It would be interesting to know the number of thrown throwables in the > JVM, to be able to do some high level application diagnostics / > statistics. A good way to put this number would be a performance > counter, since it is accessible both from Java and from the VM. > > http://bugs.sun.com/bugdatabase/viewbug.do?bugid=8007806 > http://cr.openjdk.java.net/~nloodin/8007806/webrev.00/ > > Regards, > Nils Loodin > >



More information about the serviceability-dev mailing list