1 /* |
1 /* |
2 * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 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 #ifndef SHARE_VM_RUNTIME_INTERFACESUPPORT_HPP |
|
26 #define SHARE_VM_RUNTIME_INTERFACESUPPORT_HPP |
|
27 |
|
28 #include "memory/gcLocker.hpp" |
|
29 #include "runtime/handles.inline.hpp" |
|
30 #include "runtime/mutexLocker.hpp" |
|
31 #include "runtime/orderAccess.hpp" |
|
32 #include "runtime/os.hpp" |
|
33 #include "runtime/safepoint.hpp" |
|
34 #include "runtime/vmThread.hpp" |
|
35 #include "utilities/globalDefinitions.hpp" |
|
36 #include "utilities/preserveException.hpp" |
|
37 #include "utilities/top.hpp" |
|
38 #ifdef TARGET_OS_FAMILY_linux |
|
39 # include "thread_linux.inline.hpp" |
|
40 #endif |
|
41 #ifdef TARGET_OS_FAMILY_solaris |
|
42 # include "thread_solaris.inline.hpp" |
|
43 #endif |
|
44 #ifdef TARGET_OS_FAMILY_windows |
|
45 # include "thread_windows.inline.hpp" |
|
46 #endif |
|
47 |
25 // Wrapper for all entry points to the virtual machine. |
48 // Wrapper for all entry points to the virtual machine. |
26 // The HandleMarkCleaner is a faster version of HandleMark. |
49 // The HandleMarkCleaner is a faster version of HandleMark. |
27 // It relies on the fact that there is a HandleMark further |
50 // It relies on the fact that there is a HandleMark further |
28 // down the stack (in JavaCalls::call_helper), and just resets |
51 // down the stack (in JavaCalls::call_helper), and just resets |
29 // to the saved values in that HandleMark. |
52 // to the saved values in that HandleMark. |
80 static void verify_last_frame(); |
103 static void verify_last_frame(); |
81 # endif |
104 # endif |
82 |
105 |
83 public: |
106 public: |
84 // OS dependent stuff |
107 // OS dependent stuff |
85 #include "incls/_interfaceSupport_pd.hpp.incl" |
108 #ifdef TARGET_OS_FAMILY_linux |
|
109 # include "interfaceSupport_linux.hpp" |
|
110 #endif |
|
111 #ifdef TARGET_OS_FAMILY_solaris |
|
112 # include "interfaceSupport_solaris.hpp" |
|
113 #endif |
|
114 #ifdef TARGET_OS_FAMILY_windows |
|
115 # include "interfaceSupport_windows.hpp" |
|
116 #endif |
|
117 |
86 }; |
118 }; |
87 |
119 |
88 |
120 |
89 // Basic class for all thread transition classes. |
121 // Basic class for all thread transition classes. |
90 |
122 |