< prev index next >
src/os/windows/vm/threadCritical_windows.cpp
Print this page
rev 13542 : 8187040: ThreadCritical crashes on Solaris if used between os::init and os::init_2
Reviewed-by:
@@ -49,20 +49,10 @@
//
// I experiemented with the use of ordinary windows mutex objects
// and found them ~30 times slower than the critical region code.
//
-void ThreadCritical::initialize() {
-}
-
-void ThreadCritical::release() {
- assert(lock_owner == -1, "Mutex being deleted while owned.");
- assert(lock_count == -1, "Mutex being deleted while recursively locked");
- assert(lock_event != NULL, "Sanity check");
- CloseHandle(lock_event);
-}
-
ThreadCritical::ThreadCritical() {
DWORD current_thread = GetCurrentThreadId();
if (lock_owner != current_thread) {
// Grab the lock before doing anything.
< prev index next >