1288 static bool is_trusted_loader(oop loader);
1289
1290 // Return true if this is one of the class loaders associated with
1291 // the generated bytecodes for reflection.
1292 static bool is_reflection_class_loader(oop loader);
1293
1294 // Fix for 4474172
1295 static oop non_reflection_class_loader(oop loader);
1296
1297 // Testers
1298 static bool is_subclass(Klass* klass) {
1299 return klass->is_subclass_of(SystemDictionary::ClassLoader_klass());
1300 }
1301 static bool is_instance(oop obj);
1302
1303 static oop unnamedModule(oop loader);
1304
1305 // Debugging
1306 friend class JavaClasses;
1307 friend class ClassFileParser; // access to number_of_fake_fields
1308 };
1309
1310
1311 // Interface to java.lang.System objects
1312
1313 class java_lang_System : AllStatic {
1314 private:
1315 static int static_in_offset;
1316 static int static_out_offset;
1317 static int static_err_offset;
1318 static int static_security_offset;
1319
1320 public:
1321 static int in_offset_in_bytes();
1322 static int out_offset_in_bytes();
1323 static int err_offset_in_bytes();
1324
1325 static bool has_security_manager();
1326
1327 static void compute_offsets();
|
1288 static bool is_trusted_loader(oop loader);
1289
1290 // Return true if this is one of the class loaders associated with
1291 // the generated bytecodes for reflection.
1292 static bool is_reflection_class_loader(oop loader);
1293
1294 // Fix for 4474172
1295 static oop non_reflection_class_loader(oop loader);
1296
1297 // Testers
1298 static bool is_subclass(Klass* klass) {
1299 return klass->is_subclass_of(SystemDictionary::ClassLoader_klass());
1300 }
1301 static bool is_instance(oop obj);
1302
1303 static oop unnamedModule(oop loader);
1304
1305 // Debugging
1306 friend class JavaClasses;
1307 friend class ClassFileParser; // access to number_of_fake_fields
1308
1309 // Describe ClassLoader for exceptions, tracing ...
1310 // Prints "<name>" (instance of <classname>, parent: "<name>" <classname>)
1311 // or <classname> (parent: "<name>" <classname>).
1312 static const char* describe_external(const oop loader);
1313 };
1314
1315
1316 // Interface to java.lang.System objects
1317
1318 class java_lang_System : AllStatic {
1319 private:
1320 static int static_in_offset;
1321 static int static_out_offset;
1322 static int static_err_offset;
1323 static int static_security_offset;
1324
1325 public:
1326 static int in_offset_in_bytes();
1327 static int out_offset_in_bytes();
1328 static int err_offset_in_bytes();
1329
1330 static bool has_security_manager();
1331
1332 static void compute_offsets();
|