--- a/src/hotspot/os/windows/os_windows.cpp Fri Feb 22 11:10:55 2019 +0530
+++ b/src/hotspot/os/windows/os_windows.cpp Fri Feb 22 09:23:37 2019 +0100
@@ -5320,27 +5320,6 @@
// Platform Monitor implementation
-os::PlatformMonitor::PlatformMonitor() {
- InitializeConditionVariable(&_cond);
- InitializeCriticalSection(&_mutex);
-}
-
-os::PlatformMonitor::~PlatformMonitor() {
- DeleteCriticalSection(&_mutex);
-}
-
-void os::PlatformMonitor::lock() {
- EnterCriticalSection(&_mutex);
-}
-
-void os::PlatformMonitor::unlock() {
- LeaveCriticalSection(&_mutex);
-}
-
-bool os::PlatformMonitor::try_lock() {
- return TryEnterCriticalSection(&_mutex);
-}
-
// Must already be locked
int os::PlatformMonitor::wait(jlong millis) {
assert(millis >= 0, "negative timeout");
@@ -5359,14 +5338,6 @@
return ret;
}
-void os::PlatformMonitor::notify() {
- WakeConditionVariable(&_cond);
-}
-
-void os::PlatformMonitor::notify_all() {
- WakeAllConditionVariable(&_cond);
-}
-
// Run the specified command in a separate process. Return its exit value,
// or -1 on failure (e.g. can't create a new process).
int os::fork_and_exec(char* cmd, bool use_vfork_if_available) {