Re: Review Request for 6878481: Add performance counters in the JDK

2009-09-13 Thread Mandy Chung
Alan, David, Thanks for the review. Comments inlined below. Alan Bateman wrote: Minor nit but I assume you can initialize perf as: private static final Perf perf = AccessController.doPrivileged(new Perf.GetPerfAction()); Fixed. David Holmes wrote: Just to add 2c to Alan's method namin

Re: Review Request for 6878481: Add performance counters in the JDK

2009-09-13 Thread David Holmes - Sun Microsystems
Just to add 2c to Alan's method naming comments: Alan Bateman said the following on 09/13/09 18:07: Method naming is hard (and often subjective) but there are updates like this: PerfCounter.getParentDelegationTime.inc(t1 - t0); which might be easier to read as: PerfCounter.getParentDelegation

Re: Review Request for 6878481: Add performance counters in the JDK

2009-09-13 Thread Alan Bateman
Mandy Chung wrote: Alan, David, Remi, Iris, Thanks for the review and the revised webrev at: http://cr.openjdk.java.net/~mchung/6878481/webrev.01/ I incorporate the comments you have and minimize the number of System.nanoTime() calls and also remove the number of opened jars perf counters

Re: Review Request for 6878481: Add performance counters in the JDK

2009-09-11 Thread Mandy Chung
Alan, David, Remi, Iris, Thanks for the review and the revised webrev at: http://cr.openjdk.java.net/~mchung/6878481/webrev.01/ I incorporate the comments you have and minimize the number of System.nanoTime() calls and also remove the number of opened jars perf counters. Please let me kno

Re: Review Request for 6878481: Add performance counters in the JDK

2009-09-03 Thread Mandy Chung
David Holmes - Sun Microsystems wrote: Hi Mandy, Mandy Chung said the following on 09/03/09 05:25: This is related to 6857194: Add hotspot new perf counters to aid class loading performance measurement. It's useful to add performance counters in the library code so that perf data from the JD

Re: Review Request for 6878481: Add performance counters in the JDK

2009-09-03 Thread Mandy Chung
Alan Bateman wrote: Mandy Chung wrote: This is related to 6857194: Add hotspot new perf counters to aid class loading performance measurement. It's useful to add performance counters in the library code so that perf data from the JDK and VM can be collected and output in a unified way (writt

Re: Review Request for 6878481: Add performance counters in the JDK

2009-09-03 Thread Andrew John Hughes
2009/9/3 Mandy Chung : > Alan Bateman wrote: >> >> Andrew John Hughes wrote: >>> >>> : >>> The use of synchronized at present seems flawed as only the set >>> methods are protected and not the get.  So lb.get could be called >>> while in an lb.put call.  I don't see the reason for using a >>> LongB

Re: Review Request for 6878481: Add performance counters in the JDK

2009-09-03 Thread Mandy Chung
Alan Bateman wrote: Andrew John Hughes wrote: : The use of synchronized at present seems flawed as only the set methods are protected and not the get. So lb.get could be called while in an lb.put call. I don't see the reason for using a LongBuffer either, as only index 0 is ever used. Why not

Re: Review Request for 6878481: Add performance counters in the JDK

2009-09-03 Thread Alan Bateman
Andrew John Hughes wrote: : The use of synchronized at present seems flawed as only the set methods are protected and not the get. So lb.get could be called while in an lb.put call. I don't see the reason for using a LongBuffer either, as only index 0 is ever used. Why not use an AtomicLong?

Re: Review Request for 6878481: Add performance counters in the JDK

2009-09-03 Thread Andrew John Hughes
2009/9/3 Rémi Forax : > Le 03/09/2009 10:54, Alan Bateman a écrit : >> >> Mandy Chung wrote: >>> >>> This is related to 6857194: Add hotspot new perf counters to aid class >>> loading performance measurement. >>> >>> It's useful to add performance counters in the library code so that perf >>> data

Re: Review Request for 6878481: Add performance counters in the JDK

2009-09-03 Thread Rémi Forax
Le 03/09/2009 11:56, Alan Bateman a écrit : Rémi Forax wrote: : Hi Alan, Classloading is now done in parallele, zip and jar can be loaded by different threads. "for the synchronization there are places where both a counter and an elapsed time are updated" => the problem is that these synchro

Re: Review Request for 6878481: Add performance counters in the JDK

2009-09-03 Thread Alan Bateman
Rémi Forax wrote: : Hi Alan, Classloading is now done in parallele, zip and jar can be loaded by different threads. "for the synchronization there are places where both a counter and an elapsed time are updated" => the problem is that these synchronisations are done on two different monitors

Re: Review Request for 6878481: Add performance counters in the JDK

2009-09-03 Thread Rémi Forax
Le 03/09/2009 10:54, Alan Bateman a écrit : Mandy Chung wrote: This is related to 6857194: Add hotspot new perf counters to aid class loading performance measurement. It's useful to add performance counters in the library code so that perf data from the JDK and VM can be collected and output

Re: Review Request for 6878481: Add performance counters in the JDK

2009-09-03 Thread Alan Bateman
Mandy Chung wrote: This is related to 6857194: Add hotspot new perf counters to aid class loading performance measurement. It's useful to add performance counters in the library code so that perf data from the JDK and VM can be collected and output in a unified way (written in the jvmstat sha

Re: Review Request for 6878481: Add performance counters in the JDK

2009-09-02 Thread David Holmes - Sun Microsystems
Hi Mandy, Mandy Chung said the following on 09/03/09 05:25: This is related to 6857194: Add hotspot new perf counters to aid class loading performance measurement. It's useful to add performance counters in the library code so that perf data from the JDK and VM can be collected and output in

Re: Review Request for 6878481: Add performance counters in the JDK

2009-09-02 Thread Rémi Forax
Le 03/09/2009 01:04, ir...@alum.mit.edu a écrit : Hi, Mandy. This is related to 6857194: Add hotspot new perf counters to aid class loading performance measurement. [ ... ] Webrev: http://cr.openjdk.java.net/~mchung/6878481/webrev.00/ Looks good. iris In Per

RE: Review Request for 6878481: Add performance counters in the JDK

2009-09-02 Thread irisg
Hi, Mandy. > This is related to 6857194: Add hotspot new perf counters to aid class > loading performance measurement. [ ... ] > Webrev: > http://cr.openjdk.java.net/~mchung/6878481/webrev.00/ Looks good. iris

Review Request for 6878481: Add performance counters in the JDK

2009-09-02 Thread Mandy Chung
This is related to 6857194: Add hotspot new perf counters to aid class loading performance measurement. It's useful to add performance counters in the library code so that perf data from the JDK and VM can be collected and output in a unified way (written in the jvmstat shared memory buffer).