< prev index next >

src/share/vm/utilities/semaphore.cpp

Print this page

        

@@ -28,11 +28,10 @@
 
 /////////////// Unit tests ///////////////
 
 #ifndef PRODUCT
 
-#if IMPLEMENTS_SEMAPHORE_CLASS
 static void test_semaphore_single_with_max_once(uint max) {
   assert(max > 0, "precondition");
 
   Semaphore sem(0, max);
 

@@ -127,11 +126,7 @@
   test_semaphore_single_multiple();
 
   test_semaphore_many();
 }
 
-#else // IMPLEMENTS_SEMAPHORE_CLASS
-void test_semaphore() {}
-#endif
-
 #endif // PRODUCT
 
< prev index next >