RFR: 8219247: Enable inlining of newly introduced PlatformMonitor methods

David Holmes david.holmes at oracle.com
Wed Feb 20 03:45:18 UTC 2019


Hi Claes,

Generally looks okay ...

On 19/02/2019 7:45 pm, Claes Redestad wrote:
> Hi,
> 
> JDK-8210832 introduced a PlatformMonitor abstraction to delegate various
> monitor operations directly to OS primitives. These methods are added to
> os_posix.cpp, meaning they can't be inlined. Moving hot and trivial
> delegating methods to .inline.hpp means a small improvement over the
> current implementation.
> 
> Webrev: http://cr.openjdk.java.net/~redestad/8219247/open.00/
> Bug:    https://bugs.openjdk.java.net/browse/JDK-8219247
> 
> Testing: tier1+2, verified improvements on a range of startup
> benchmarks.
> 
> Note: the patch includes an untested but likely sufficient fix to AIX
> code to include os_posix.inline.hpp from os_aix.inline.hpp - any help
> verifying this builds and passes tests on AIX would be much appreciated.

Why did you do that for aix (and bsd), when AFAICS there is no usage of 
anything from os_posix.inline.hpp in os_aix.inline.hpp? Shouldn't the 
include have gone into the .cpp file that refers to the PlatformMonitor 
functions?

One further nit, the additional include of pthread.h should not be 
needed as it will come in via globalDefinitions.hpp. Or do you object to 
implicit includes via that mechanism?

Thanks,
David

> Thanks!
> 
> /Claes


More information about the hotspot-runtime-dev mailing list