RFR: 8007806: Need a Throwables performance counter

Jason Mehrens jason_mehrens at hotmail.com
Fri Feb 22 16:16:36 UTC 2013








>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,        serviceability_dev_ww_grp 
> <serviceability_dev_ww_grp 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/view_bug.do?bug_id=8007806
> http://cr.openjdk.java.net/~nloodin/8007806/webrev.00/
> 
> Regards,
> Nils Loodin
> 
> 



 		 	   		  


More information about the core-libs-dev mailing list