Thu, 08 May 2014 17:19:49 -0400
8015256: Better class accessibility
Summary: Improve protection domain check in forName()
Reviewed-by: mchung, acorn, jdn
1 #
2 # Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
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
7 # published by the Free Software Foundation.
8 #
9 # This code is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
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 #
25 # Define public interface.
27 SUNWprivate_1.1 {
28 global:
29 # JNI
30 JNI_CreateJavaVM;
31 JNI_GetCreatedJavaVMs;
32 JNI_GetDefaultJavaVMInitArgs;
34 # JVM
35 JVM_Accept;
36 JVM_ActiveProcessorCount;
37 JVM_AllocateNewArray;
38 JVM_AllocateNewObject;
39 JVM_ArrayCopy;
40 JVM_AssertionStatusDirectives;
41 JVM_Available;
42 JVM_Bind;
43 JVM_ClassDepth;
44 JVM_ClassLoaderDepth;
45 JVM_Clone;
46 JVM_Close;
47 JVM_CX8Field;
48 JVM_CompileClass;
49 JVM_CompileClasses;
50 JVM_CompilerCommand;
51 JVM_Connect;
52 JVM_ConstantPoolGetClassAt;
53 JVM_ConstantPoolGetClassAtIfLoaded;
54 JVM_ConstantPoolGetDoubleAt;
55 JVM_ConstantPoolGetFieldAt;
56 JVM_ConstantPoolGetFieldAtIfLoaded;
57 JVM_ConstantPoolGetFloatAt;
58 JVM_ConstantPoolGetIntAt;
59 JVM_ConstantPoolGetLongAt;
60 JVM_ConstantPoolGetMethodAt;
61 JVM_ConstantPoolGetMethodAtIfLoaded;
62 JVM_ConstantPoolGetMemberRefInfoAt;
63 JVM_ConstantPoolGetSize;
64 JVM_ConstantPoolGetStringAt;
65 JVM_ConstantPoolGetUTF8At;
66 JVM_CountStackFrames;
67 JVM_CurrentClassLoader;
68 JVM_CurrentLoadedClass;
69 JVM_CurrentThread;
70 JVM_CurrentTimeMillis;
71 JVM_DefineClass;
72 JVM_DefineClassWithSource;
73 JVM_DefineClassWithSourceCond;
74 JVM_DesiredAssertionStatus;
75 JVM_DisableCompiler;
76 JVM_DoPrivileged;
77 JVM_DTraceGetVersion;
78 JVM_DTraceActivate;
79 JVM_DTraceIsProbeEnabled;
80 JVM_DTraceIsSupported;
81 JVM_DTraceDispose;
82 JVM_DumpAllStacks;
83 JVM_DumpThreads;
84 JVM_EnableCompiler;
85 JVM_Exit;
86 JVM_FillInStackTrace;
87 JVM_FindClassFromCaller;
88 JVM_FindClassFromClass;
89 JVM_FindClassFromClassLoader;
90 JVM_FindClassFromBootLoader;
91 JVM_FindLibraryEntry;
92 JVM_FindLoadedClass;
93 JVM_FindPrimitiveClass;
94 JVM_FindSignal;
95 JVM_FreeMemory;
96 JVM_GC;
97 JVM_GetAllThreads;
98 JVM_GetArrayElement;
99 JVM_GetArrayLength;
100 JVM_GetCPClassNameUTF;
101 JVM_GetCPFieldClassNameUTF;
102 JVM_GetCPFieldModifiers;
103 JVM_GetCPFieldNameUTF;
104 JVM_GetCPFieldSignatureUTF;
105 JVM_GetCPMethodClassNameUTF;
106 JVM_GetCPMethodModifiers;
107 JVM_GetCPMethodNameUTF;
108 JVM_GetCPMethodSignatureUTF;
109 JVM_GetCallerClass;
110 JVM_GetClassAccessFlags;
111 JVM_GetClassAnnotations;
112 JVM_GetClassCPEntriesCount;
113 JVM_GetClassCPTypes;
114 JVM_GetClassConstantPool;
115 JVM_GetClassContext;
116 JVM_GetClassDeclaredConstructors;
117 JVM_GetClassDeclaredFields;
118 JVM_GetClassDeclaredMethods;
119 JVM_GetClassFieldsCount;
120 JVM_GetClassInterfaces;
121 JVM_GetClassLoader;
122 JVM_GetClassMethodsCount;
123 JVM_GetClassModifiers;
124 JVM_GetClassName;
125 JVM_GetClassNameUTF;
126 JVM_GetClassSignature;
127 JVM_GetClassSigners;
128 JVM_GetComponentType;
129 JVM_GetClassTypeAnnotations;
130 JVM_GetDeclaredClasses;
131 JVM_GetDeclaringClass;
132 JVM_GetEnclosingMethodInfo;
133 JVM_GetFieldAnnotations;
134 JVM_GetFieldIxModifiers;
135 JVM_GetFieldTypeAnnotations;
136 JVM_GetHostName;
137 JVM_GetInheritedAccessControlContext;
138 JVM_GetInterfaceVersion;
139 JVM_GetLastErrorString;
140 JVM_GetManagement;
141 JVM_GetMethodAnnotations;
142 JVM_GetMethodDefaultAnnotationValue;
143 JVM_GetMethodIxArgsSize;
144 JVM_GetMethodIxByteCode;
145 JVM_GetMethodIxByteCodeLength;
146 JVM_GetMethodIxExceptionIndexes;
147 JVM_GetMethodIxExceptionTableEntry;
148 JVM_GetMethodIxExceptionTableLength;
149 JVM_GetMethodIxExceptionsCount;
150 JVM_GetMethodIxLocalsCount;
151 JVM_GetMethodIxMaxStack;
152 JVM_GetMethodIxModifiers;
153 JVM_GetMethodIxNameUTF;
154 JVM_GetMethodIxSignatureUTF;
155 JVM_GetMethodParameterAnnotations;
156 JVM_GetMethodParameters;
157 JVM_GetMethodTypeAnnotations;
158 JVM_GetPrimitiveArrayElement;
159 JVM_GetProtectionDomain;
160 JVM_GetSockName;
161 JVM_GetSockOpt;
162 JVM_GetStackAccessControlContext;
163 JVM_GetStackTraceDepth;
164 JVM_GetStackTraceElement;
165 JVM_GetSystemPackage;
166 JVM_GetSystemPackages;
167 JVM_GetThreadStateNames;
168 JVM_GetThreadStateValues;
169 JVM_GetVersionInfo;
170 JVM_Halt;
171 JVM_HoldsLock;
172 JVM_IHashCode;
173 JVM_InitAgentProperties;
174 JVM_InitProperties;
175 JVM_InitializeCompiler;
176 JVM_InitializeSocketLibrary;
177 JVM_InternString;
178 JVM_Interrupt;
179 JVM_InvokeMethod;
180 JVM_IsArrayClass;
181 JVM_IsConstructorIx;
182 JVM_IsInterface;
183 JVM_IsInterrupted;
184 JVM_IsNaN;
185 JVM_IsPrimitiveClass;
186 JVM_IsSameClassPackage;
187 JVM_IsSilentCompiler;
188 JVM_IsSupportedJNIVersion;
189 JVM_IsThreadAlive;
190 JVM_IsVMGeneratedMethodIx;
191 JVM_LatestUserDefinedLoader;
192 JVM_Listen;
193 JVM_LoadClass0;
194 JVM_LoadLibrary;
195 JVM_Lseek;
196 JVM_MaxObjectInspectionAge;
197 JVM_MaxMemory;
198 JVM_MonitorNotify;
199 JVM_MonitorNotifyAll;
200 JVM_MonitorWait;
201 JVM_NativePath;
202 JVM_NanoTime;
203 JVM_NewArray;
204 JVM_NewInstanceFromConstructor;
205 JVM_NewMultiArray;
206 JVM_OnExit;
207 JVM_Open;
208 JVM_RaiseSignal;
209 JVM_RawMonitorCreate;
210 JVM_RawMonitorDestroy;
211 JVM_RawMonitorEnter;
212 JVM_RawMonitorExit;
213 JVM_Read;
214 JVM_Recv;
215 JVM_RecvFrom;
216 JVM_RegisterSignal;
217 JVM_ReleaseUTF;
218 JVM_ResolveClass;
219 JVM_ResumeThread;
220 JVM_Send;
221 JVM_SendTo;
222 JVM_SetArrayElement;
223 JVM_SetClassSigners;
224 JVM_SetLength;
225 JVM_SetNativeThreadName;
226 JVM_SetPrimitiveArrayElement;
227 JVM_SetSockOpt;
228 JVM_SetThreadPriority;
229 JVM_Sleep;
230 JVM_Socket;
231 JVM_SocketAvailable;
232 JVM_SocketClose;
233 JVM_SocketShutdown;
234 JVM_StartThread;
235 JVM_StopThread;
236 JVM_SuspendThread;
237 JVM_SupportsCX8;
238 JVM_Sync;
239 JVM_Timeout;
240 JVM_TotalMemory;
241 JVM_TraceInstructions;
242 JVM_TraceMethodCalls;
243 JVM_UnloadLibrary;
244 JVM_Write;
245 JVM_Yield;
246 JVM_handle_solaris_signal;
248 # miscellaneous functions
249 jio_fprintf;
250 jio_printf;
251 jio_snprintf;
252 jio_vfprintf;
253 jio_vsnprintf;
255 # Needed because there is no JVM interface for this.
256 sysThreadAvailableStackWithSlack;
258 # This is for Forte Analyzer profiling support.
259 AsyncGetCallTrace;
261 # INSERT VTABLE SYMBOLS HERE
263 local:
264 *;
265 };