< prev index next >

src/share/vm/runtime/mutex.cpp

Print this page

        

*** 1,8 **** /* ! * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,8 ---- /* ! * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 1371,1384 **** name())); } debug_only(if (rank() != Mutex::special) \ thread->check_for_valid_safepoint_state(false);) } ! if (thread->is_Watcher_thread()) { ! assert(!WatcherThread::watcher_thread()->has_crash_protection(), ! "locking not allowed when crash protection is set"); ! } } void Monitor::check_block_state(Thread *thread) { if (!_allow_vm_block && thread->is_VM_thread()) { warning("VM thread blocked on lock"); --- 1371,1382 ---- name())); } debug_only(if (rank() != Mutex::special) \ thread->check_for_valid_safepoint_state(false);) } ! assert(!os::ThreadCrashProtection::is_crash_protected(thread), ! "locking not allowed when crash protection is set"); } void Monitor::check_block_state(Thread *thread) { if (!_allow_vm_block && thread->is_VM_thread()) { warning("VM thread blocked on lock");
< prev index next >