1304 static bool is_trusted_loader(oop loader);
1305
1306 // Return true if this is one of the class loaders associated with
1307 // the generated bytecodes for reflection.
1308 static bool is_reflection_class_loader(oop loader);
1309
1310 // Fix for 4474172
1311 static oop non_reflection_class_loader(oop loader);
1312
1313 // Testers
1314 static bool is_subclass(Klass* klass) {
1315 return klass->is_subclass_of(SystemDictionary::ClassLoader_klass());
1316 }
1317 static bool is_instance(oop obj);
1318
1319 static oop unnamedModule(oop loader);
1320
1321 // Debugging
1322 friend class JavaClasses;
1323 friend class ClassFileParser; // access to number_of_fake_fields
1324 };
1325
1326
1327 // Interface to java.lang.System objects
1328
1329 class java_lang_System : AllStatic {
1330 private:
1331 static int static_in_offset;
1332 static int static_out_offset;
1333 static int static_err_offset;
1334 static int static_security_offset;
1335
1336 public:
1337 static int in_offset_in_bytes();
1338 static int out_offset_in_bytes();
1339 static int err_offset_in_bytes();
1340
1341 static bool has_security_manager();
1342
1343 static void compute_offsets();
|
1304 static bool is_trusted_loader(oop loader);
1305
1306 // Return true if this is one of the class loaders associated with
1307 // the generated bytecodes for reflection.
1308 static bool is_reflection_class_loader(oop loader);
1309
1310 // Fix for 4474172
1311 static oop non_reflection_class_loader(oop loader);
1312
1313 // Testers
1314 static bool is_subclass(Klass* klass) {
1315 return klass->is_subclass_of(SystemDictionary::ClassLoader_klass());
1316 }
1317 static bool is_instance(oop obj);
1318
1319 static oop unnamedModule(oop loader);
1320
1321 // Debugging
1322 friend class JavaClasses;
1323 friend class ClassFileParser; // access to number_of_fake_fields
1324
1325 // Describe ClassLoader for exceptions, tracing ...
1326 // Prints "<name>" (instance of <classname>, parent: "<name>" <classname>)
1327 // or <classname> (parent: "<name>" <classname>).
1328 static const char* describe_external(const oop loader);
1329 };
1330
1331
1332 // Interface to java.lang.System objects
1333
1334 class java_lang_System : AllStatic {
1335 private:
1336 static int static_in_offset;
1337 static int static_out_offset;
1338 static int static_err_offset;
1339 static int static_security_offset;
1340
1341 public:
1342 static int in_offset_in_bytes();
1343 static int out_offset_in_bytes();
1344 static int err_offset_in_bytes();
1345
1346 static bool has_security_manager();
1347
1348 static void compute_offsets();
|