1 /* |
1 /* |
2 * Copyright (c) 1998, 2009, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
20 * or visit www.oracle.com if you need additional information or have any |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 * |
22 * |
23 */ |
23 */ |
24 |
24 |
25 # include "incls/_precompiled.incl" |
25 #include "precompiled.hpp" |
26 # include "incls/_synchronizer.cpp.incl" |
26 #include "classfile/vmSymbols.hpp" |
|
27 #include "memory/resourceArea.hpp" |
|
28 #include "oops/markOop.hpp" |
|
29 #include "oops/oop.inline.hpp" |
|
30 #include "runtime/biasedLocking.hpp" |
|
31 #include "runtime/handles.inline.hpp" |
|
32 #include "runtime/interfaceSupport.hpp" |
|
33 #include "runtime/mutexLocker.hpp" |
|
34 #include "runtime/objectMonitor.hpp" |
|
35 #include "runtime/objectMonitor.inline.hpp" |
|
36 #include "runtime/osThread.hpp" |
|
37 #include "runtime/stubRoutines.hpp" |
|
38 #include "runtime/synchronizer.hpp" |
|
39 #include "utilities/dtrace.hpp" |
|
40 #include "utilities/events.hpp" |
|
41 #include "utilities/preserveException.hpp" |
|
42 #ifdef TARGET_OS_FAMILY_linux |
|
43 # include "os_linux.inline.hpp" |
|
44 # include "thread_linux.inline.hpp" |
|
45 #endif |
|
46 #ifdef TARGET_OS_FAMILY_solaris |
|
47 # include "os_solaris.inline.hpp" |
|
48 # include "thread_solaris.inline.hpp" |
|
49 #endif |
|
50 #ifdef TARGET_OS_FAMILY_windows |
|
51 # include "os_windows.inline.hpp" |
|
52 # include "thread_windows.inline.hpp" |
|
53 #endif |
27 |
54 |
28 #if defined(__GNUC__) && !defined(IA64) |
55 #if defined(__GNUC__) && !defined(IA64) |
29 // Need to inhibit inlining for older versions of GCC to avoid build-time failures |
56 // Need to inhibit inlining for older versions of GCC to avoid build-time failures |
30 #define ATTR __attribute__((noinline)) |
57 #define ATTR __attribute__((noinline)) |
31 #else |
58 #else |