1 /* |
1 /* |
2 * Copyright (c) 1997, 2009, 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 # include "incls/_precompiled.incl" |
25 #include "precompiled.hpp" |
26 # include "incls/_javaClasses.cpp.incl" |
26 #include "classfile/javaClasses.hpp" |
|
27 #include "classfile/symbolTable.hpp" |
|
28 #include "classfile/vmSymbols.hpp" |
|
29 #include "code/debugInfo.hpp" |
|
30 #include "code/pcDesc.hpp" |
|
31 #include "interpreter/interpreter.hpp" |
|
32 #include "memory/oopFactory.hpp" |
|
33 #include "memory/resourceArea.hpp" |
|
34 #include "memory/universe.inline.hpp" |
|
35 #include "oops/instanceKlass.hpp" |
|
36 #include "oops/klass.hpp" |
|
37 #include "oops/klassOop.hpp" |
|
38 #include "oops/methodOop.hpp" |
|
39 #include "oops/symbolOop.hpp" |
|
40 #include "oops/typeArrayOop.hpp" |
|
41 #include "runtime/fieldDescriptor.hpp" |
|
42 #include "runtime/handles.inline.hpp" |
|
43 #include "runtime/interfaceSupport.hpp" |
|
44 #include "runtime/java.hpp" |
|
45 #include "runtime/javaCalls.hpp" |
|
46 #include "runtime/safepoint.hpp" |
|
47 #include "runtime/vframe.hpp" |
|
48 #include "utilities/preserveException.hpp" |
|
49 #ifdef TARGET_OS_FAMILY_linux |
|
50 # include "thread_linux.inline.hpp" |
|
51 #endif |
|
52 #ifdef TARGET_OS_FAMILY_solaris |
|
53 # include "thread_solaris.inline.hpp" |
|
54 #endif |
|
55 #ifdef TARGET_OS_FAMILY_windows |
|
56 # include "thread_windows.inline.hpp" |
|
57 #endif |
27 |
58 |
28 static bool find_field(instanceKlass* ik, |
59 static bool find_field(instanceKlass* ik, |
29 symbolOop name_symbol, symbolOop signature_symbol, |
60 symbolOop name_symbol, symbolOop signature_symbol, |
30 fieldDescriptor* fd, |
61 fieldDescriptor* fd, |
31 bool allow_super = false) { |
62 bool allow_super = false) { |