12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "logging/logStream.hpp"
27 #include "memory/allocation.inline.hpp"
28 #include "runtime/jniHandles.inline.hpp"
29 #include "runtime/thread.inline.hpp"
30 #include "runtime/threadSMR.inline.hpp"
31 #include "services/threadService.hpp"
32 #include "utilities/globalDefinitions.hpp"
33 #include "utilities/resourceHash.hpp"
34
35 Monitor* ThreadsSMRSupport::_delete_lock =
36 new Monitor(Monitor::special, "Thread_SMR_delete_lock",
37 false /* allow_vm_block */,
38 Monitor::_safepoint_check_never);
39 // The '_cnt', '_max' and '_times" fields are enabled via
40 // -XX:+EnableThreadSMRStatistics:
41
42 // # of parallel threads in _delete_lock->wait().
43 // Impl note: Hard to imagine > 64K waiting threads so this could be 16-bit,
44 // but there is no nice 16-bit _FORMAT support.
45 uint ThreadsSMRSupport::_delete_lock_wait_cnt = 0;
46
47 // Max # of parallel threads in _delete_lock->wait().
48 // Impl note: See _delete_lock_wait_cnt note.
49 uint ThreadsSMRSupport::_delete_lock_wait_max = 0;
50
51 // Flag to indicate when an _delete_lock->notify() is needed.
|
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "logging/logStream.hpp"
27 #include "memory/allocation.inline.hpp"
28 #include "runtime/jniHandles.inline.hpp"
29 #include "runtime/thread.inline.hpp"
30 #include "runtime/threadSMR.inline.hpp"
31 #include "services/threadService.hpp"
32 #include "utilities/copy.hpp"
33 #include "utilities/globalDefinitions.hpp"
34 #include "utilities/resourceHash.hpp"
35
36 Monitor* ThreadsSMRSupport::_delete_lock =
37 new Monitor(Monitor::special, "Thread_SMR_delete_lock",
38 false /* allow_vm_block */,
39 Monitor::_safepoint_check_never);
40 // The '_cnt', '_max' and '_times" fields are enabled via
41 // -XX:+EnableThreadSMRStatistics:
42
43 // # of parallel threads in _delete_lock->wait().
44 // Impl note: Hard to imagine > 64K waiting threads so this could be 16-bit,
45 // but there is no nice 16-bit _FORMAT support.
46 uint ThreadsSMRSupport::_delete_lock_wait_cnt = 0;
47
48 // Max # of parallel threads in _delete_lock->wait().
49 // Impl note: See _delete_lock_wait_cnt note.
50 uint ThreadsSMRSupport::_delete_lock_wait_max = 0;
51
52 // Flag to indicate when an _delete_lock->notify() is needed.
|