Re: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration

2015-12-17 Thread Marcus Larsson
us Larsson Sent: den 15 december 2015 11:25 To: serviceability-dev@openjdk.java.net Cc: hotspot-runtime-...@openjdk.java.net Subject: Re: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration Hi, New webrev: http://cr.openjdk.java.net/~mlarsson/8145083/web

Re: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration

2015-12-17 Thread Marcus Larsson
Thanks for reviewing, Kim! On 2015-12-16 18:07, Kim Barrett wrote: On Dec 15, 2015, at 10:12 AM, Marcus Larsson wrote: I think it's worth another round. :) New webrev: http://cr.openjdk.java.net/~mlarsson/8145083/webrev.04/ Incremental: http://cr.openjdk.java.net/~mlarsson/8145083/webrev.03-

Re: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration

2015-12-16 Thread David Holmes
@openjdk.java.net Cc: hotspot-runtime-...@openjdk.java.net Subject: Re: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration Hi, New webrev: http://cr.openjdk.java.net/~mlarsson/8145083/webrev.03/ Incremental: http://cr.openjdk.java.net/~mlarsson/

Re: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration

2015-12-16 Thread Kim Barrett
On Dec 15, 2015, at 10:12 AM, Marcus Larsson wrote: > > I think it's worth another round. :) > > New webrev: > http://cr.openjdk.java.net/~mlarsson/8145083/webrev.04/ > > Incremental: > http://cr.openjdk.java.net/~mlarsson/8145083/webrev.03-04/ Looks good. I like the reorganization around the

Re: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration

2015-12-15 Thread Marcus Larsson
-...@openjdk.java.net; serviceability-dev@openjdk.java.net Subject: Re: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration Hey Markus, On 2015-12-15 11:58, Markus Gronlund wrote: Hi Marcus, Looks good! One minor thing that you don't need to fix i

RE: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration

2015-12-15 Thread Markus Gronlund
> > Good work! > > /Markus > > > > > -Original Message- > From: Marcus Larsson > Sent: den 15 december 2015 11:25 > To: serviceability-dev@openjdk.java.net > Cc: hotspot-runtime-...@openjdk.java.net > Subject: Re: RFR: 8145083: Use semaphore i

Re: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration

2015-12-15 Thread Marcus Larsson
e: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration Hi, New webrev: http://cr.openjdk.java.net/~mlarsson/8145083/webrev.03/ Incremental: http://cr.openjdk.java.net/~mlarsson/8145083/webrev.02-03/ ConfigurationLocker renamed to ConfigurationLock to

RE: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration

2015-12-15 Thread Markus Gronlund
penjdk.java.net Subject: Re: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration Hi, New webrev: http://cr.openjdk.java.net/~mlarsson/8145083/webrev.03/ Incremental: http://cr.openjdk.java.net/~mlarsson/8145083/webrev.02-03/ ConfigurationLo

Re: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration

2015-12-15 Thread Marcus Larsson
Hi, New webrev: http://cr.openjdk.java.net/~mlarsson/8145083/webrev.03/ Incremental: http://cr.openjdk.java.net/~mlarsson/8145083/webrev.02-03/ ConfigurationLocker renamed to ConfigurationLock to avoid confusion with the MutexLocker family of classes. Semaphore and locking thread id moved into

Re: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration

2015-12-15 Thread Marcus Larsson
hanks for looking at this! Marcus Thanks Markus -Original Message- From: Marcus Larsson Sent: den 14 december 2015 16:31 To: serviceability-dev@openjdk.java.net Cc: hotspot-runtime-...@openjdk.java.net Subject: Re: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unif

Re: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration

2015-12-15 Thread Marcus Larsson
Hi Kim, On 2015-12-15 02:17, Kim Barrett wrote: On Dec 14, 2015, at 9:53 AM, Marcus Larsson wrote: Hi, New webrev: http://cr.openjdk.java.net/~mlarsson/8145083/webrev.01/ Incremental: http://cr.openjdk.java.net/~mlarsson/8145083/webrev.00-01/ One minor nit:

Re: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration

2015-12-14 Thread Kim Barrett
On Dec 14, 2015, at 9:53 AM, Marcus Larsson wrote: > > Hi, > > New webrev: > http://cr.openjdk.java.net/~mlarsson/8145083/webrev.01/ > > Incremental: > http://cr.openjdk.java.net/~mlarsson/8145083/webrev.00-01/ One minor nit: ---

RE: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration

2015-12-14 Thread Markus Gronlund
java.net Cc: hotspot-runtime-...@openjdk.java.net Subject: Re: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration Hi again, Made some changes to the patch after feedback from Markus Grönlund. The ConfigurationLocker and the semaphore have b

Re: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration

2015-12-14 Thread Marcus Larsson
Hi again, Made some changes to the patch after feedback from Markus Grönlund. The ConfigurationLocker and the semaphore have been moved out of the LogConfiguration.hpp and into the .cpp instead. The lock is only used internally by the LogConfiguration so this makes sense. It simplifies the Lo

Re: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration

2015-12-14 Thread Marcus Larsson
Hi David, On 2015-12-14 13:53, David Holmes wrote: Hi Marcus, Looks good! Thanks! On 14/12/2015 8:13 PM, Marcus Larsson wrote: Hi, Please review the following patch to use a semaphore instead of a mutex for the synchronization of log configuration. Using a mutex requires some parts of t

Re: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration

2015-12-14 Thread Marcus Larsson
Hi, New webrev: http://cr.openjdk.java.net/~mlarsson/8145083/webrev.01/ Incremental: http://cr.openjdk.java.net/~mlarsson/8145083/webrev.00-01/ Changes: * Introduced the ConfigurationLocker class for automatic wait/signal in constructor/destructor just like a MutexLocker. * Added an assert to

Re: RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration

2015-12-14 Thread David Holmes
Hi Marcus, Looks good! On 14/12/2015 8:13 PM, Marcus Larsson wrote: Hi, Please review the following patch to use a semaphore instead of a mutex for the synchronization of log configuration. Using a mutex requires some parts of the VM to be initialized, whereas the semaphores can be used right

RFR: 8145083: Use semaphore instead of mutex for synchronization of Unified Logging configuration

2015-12-14 Thread Marcus Larsson
Hi, Please review the following patch to use a semaphore instead of a mutex for the synchronization of log configuration. Using a mutex requires some parts of the VM to be initialized, whereas the semaphores can be used right from the start. This simplifies the code and allows very early log