1 /* |
1 /* |
2 * Copyright (c) 2003, 2009, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 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 |
25 #include "precompiled.hpp" |
26 # include "incls/_precompiled.incl" |
26 #include "classfile/systemDictionary.hpp" |
27 # include "incls/_jvmtiEnv.cpp.incl" |
27 #include "classfile/vmSymbols.hpp" |
|
28 #include "interpreter/bytecodeStream.hpp" |
|
29 #include "interpreter/interpreter.hpp" |
|
30 #include "jvmtifiles/jvmtiEnv.hpp" |
|
31 #include "memory/resourceArea.hpp" |
|
32 #include "memory/universe.inline.hpp" |
|
33 #include "oops/cpCacheOop.hpp" |
|
34 #include "oops/instanceKlass.hpp" |
|
35 #include "prims/jniCheck.hpp" |
|
36 #include "prims/jvm_misc.hpp" |
|
37 #include "prims/jvmtiAgentThread.hpp" |
|
38 #include "prims/jvmtiClassFileReconstituter.hpp" |
|
39 #include "prims/jvmtiCodeBlobEvents.hpp" |
|
40 #include "prims/jvmtiExtensions.hpp" |
|
41 #include "prims/jvmtiGetLoadedClasses.hpp" |
|
42 #include "prims/jvmtiImpl.hpp" |
|
43 #include "prims/jvmtiManageCapabilities.hpp" |
|
44 #include "prims/jvmtiRawMonitor.hpp" |
|
45 #include "prims/jvmtiRedefineClasses.hpp" |
|
46 #include "prims/jvmtiTagMap.hpp" |
|
47 #include "prims/jvmtiThreadState.inline.hpp" |
|
48 #include "prims/jvmtiUtil.hpp" |
|
49 #include "runtime/arguments.hpp" |
|
50 #include "runtime/deoptimization.hpp" |
|
51 #include "runtime/interfaceSupport.hpp" |
|
52 #include "runtime/javaCalls.hpp" |
|
53 #include "runtime/jfieldIDWorkaround.hpp" |
|
54 #include "runtime/osThread.hpp" |
|
55 #include "runtime/reflectionUtils.hpp" |
|
56 #include "runtime/signature.hpp" |
|
57 #include "runtime/vframe.hpp" |
|
58 #include "runtime/vmThread.hpp" |
|
59 #include "services/threadService.hpp" |
|
60 #include "utilities/exceptions.hpp" |
|
61 #include "utilities/preserveException.hpp" |
|
62 #ifdef TARGET_OS_FAMILY_linux |
|
63 # include "thread_linux.inline.hpp" |
|
64 #endif |
|
65 #ifdef TARGET_OS_FAMILY_solaris |
|
66 # include "thread_solaris.inline.hpp" |
|
67 #endif |
|
68 #ifdef TARGET_OS_FAMILY_windows |
|
69 # include "thread_windows.inline.hpp" |
|
70 #endif |
|
71 |
28 |
72 |
29 |
73 |
30 #define FIXLATER 0 // REMOVE this when completed. |
74 #define FIXLATER 0 // REMOVE this when completed. |
31 |
75 |
32 // FIXLATER: hook into JvmtiTrace |
76 // FIXLATER: hook into JvmtiTrace |