--- old/src/share/vm/runtime/arguments.cpp 2015-06-12 14:49:27.025961664 +0200 +++ new/src/share/vm/runtime/arguments.cpp 2015-06-12 14:49:26.869956586 +0200 @@ -46,6 +46,7 @@ #include "services/memTracker.hpp" #include "utilities/defaultStream.hpp" #include "utilities/macros.hpp" +#include "utilities/semaphore.hpp" #include "utilities/stringUtils.hpp" #if INCLUDE_ALL_GCS #include "gc/cms/compactibleFreeListSpace.hpp" @@ -3864,6 +3865,14 @@ no_shared_spaces("CDS Disabled"); #endif // INCLUDE_CDS + // The Semaphore class isn't implemented on all platforms. +#if !IMPLEMENTS_SEMAPHORE_CLASS + if (UseSemaphoreGCThreadsSynchronization && FLAG_IS_CMDLINE(UseSemaphoreGCThreadsSynchronization)) { + warning("Semaphore GC Thread Synchronization is not implemented for this platform"); + FLAG_SET_DEFAULT(UseSemaphoreGCThreadsSynchronization, false); + } +#endif + return JNI_OK; }