--- old/src/share/vm/utilities/semaphore.cpp 2015-06-15 21:33:25.616166554 +0200 +++ new/src/share/vm/utilities/semaphore.cpp 2015-06-15 21:33:25.488162255 +0200 @@ -30,7 +30,6 @@ #ifndef PRODUCT -#if IMPLEMENTS_SEMAPHORE_CLASS static void test_semaphore_single_with_max_once(uint max) { assert(max > 0, "precondition"); @@ -129,9 +128,5 @@ test_semaphore_many(); } -#else // IMPLEMENTS_SEMAPHORE_CLASS -void test_semaphore() {} -#endif - #endif // PRODUCT