Mercurial > hg > truffle
comparison src/share/vm/classfile/javaClasses.hpp @ 11010:b295e132102d
8001330: Improve on checking order
Reviewed-by: acorn, hawtin
author | mullan |
---|---|
date | Fri, 05 Apr 2013 10:18:36 -0400 |
parents | 16885e702c88 |
children | 4b52137b07c9 |
comparison
equal
deleted
inserted
replaced
11009:f75faf51e8c4 | 11010:b295e132102d |
---|---|
1147 // Note that for this class the layout changed between JDK1.2 and JDK1.3, | 1147 // Note that for this class the layout changed between JDK1.2 and JDK1.3, |
1148 // so we compute the offsets at startup rather than hard-wiring them. | 1148 // so we compute the offsets at startup rather than hard-wiring them. |
1149 static int _context_offset; | 1149 static int _context_offset; |
1150 static int _privilegedContext_offset; | 1150 static int _privilegedContext_offset; |
1151 static int _isPrivileged_offset; | 1151 static int _isPrivileged_offset; |
1152 static int _isAuthorized_offset; | |
1152 | 1153 |
1153 static void compute_offsets(); | 1154 static void compute_offsets(); |
1154 public: | 1155 public: |
1155 static oop create(objArrayHandle context, bool isPrivileged, Handle privileged_context, TRAPS); | 1156 static oop create(objArrayHandle context, bool isPrivileged, Handle privileged_context, TRAPS); |
1157 | |
1158 static bool is_authorized(Handle context); | |
1156 | 1159 |
1157 // Debugging/initialization | 1160 // Debugging/initialization |
1158 friend class JavaClasses; | 1161 friend class JavaClasses; |
1159 }; | 1162 }; |
1160 | 1163 |
1211 class java_lang_System : AllStatic { | 1214 class java_lang_System : AllStatic { |
1212 private: | 1215 private: |
1213 enum { | 1216 enum { |
1214 hc_static_in_offset = 0, | 1217 hc_static_in_offset = 0, |
1215 hc_static_out_offset = 1, | 1218 hc_static_out_offset = 1, |
1216 hc_static_err_offset = 2 | 1219 hc_static_err_offset = 2, |
1220 hc_static_security_offset = 3 | |
1217 }; | 1221 }; |
1218 | 1222 |
1219 static int static_in_offset; | 1223 static int static_in_offset; |
1220 static int static_out_offset; | 1224 static int static_out_offset; |
1221 static int static_err_offset; | 1225 static int static_err_offset; |
1226 static int static_security_offset; | |
1222 | 1227 |
1223 public: | 1228 public: |
1224 static int in_offset_in_bytes(); | 1229 static int in_offset_in_bytes(); |
1225 static int out_offset_in_bytes(); | 1230 static int out_offset_in_bytes(); |
1226 static int err_offset_in_bytes(); | 1231 static int err_offset_in_bytes(); |
1232 | |
1233 static bool has_security_manager(); | |
1227 | 1234 |
1228 // Debugging | 1235 // Debugging |
1229 friend class JavaClasses; | 1236 friend class JavaClasses; |
1230 }; | 1237 }; |
1231 | 1238 |