--- old/src/share/vm/runtime/semaphore.hpp 2015-06-25 18:20:30.149487855 +0200 +++ new/src/share/vm/runtime/semaphore.hpp 2015-06-25 18:20:30.013483224 +0200 @@ -37,6 +37,7 @@ # error "No semaphore implementation provided for this OS" #endif +// Implements the limited, platform independent Semaphore API. class Semaphore : public CHeapObj { private: // Prevent copying and assignment of Semaphore instances. @@ -47,12 +48,12 @@ SemaphoreImpl _impl; public: - Semaphore(uint value = 0); - ~Semaphore(); + Semaphore(uint value = 0) : _impl(value) {} + ~Semaphore() {} - void signal(uint count = 1); + void signal(uint count = 1) { _impl.signal(count); } - void wait(); + void wait() { _impl.wait(); } };