1 #ifdef USE_PRAGMA_IDENT_HDR 2 #pragma ident "@(#)systemDictionary.hpp 1.156 07/08/09 09:11:58 JVM" 3 #endif 4 /* 5 * Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved. 6 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 7 * 8 * This code is free software; you can redistribute it and/or modify it 9 * under the terms of the GNU General Public License version 2 only, as 10 * published by the Free Software Foundation. 11 * 12 * This code is distributed in the hope that it will be useful, but WITHOUT 13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15 * version 2 for more details (a copy is included in the LICENSE file that 16 * accompanied this code). 17 * 18 * You should have received a copy of the GNU General Public License version 19 * 2 along with this work; if not, write to the Free Software Foundation, 20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 21 * 22 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 23 * CA 95054 USA or visit www.sun.com if you need additional information or 24 * have any questions. 25 * 26 */ 27 28 // The system dictionary stores all loaded classes and maps: 29 // 30 // [class name,class loader] -> class i.e. [symbolOop,oop] -> klassOop 31 // 32 // Classes are loaded lazily. The default VM class loader is 33 // represented as NULL. 34 35 // The underlying data structure is an open hash table with a fixed number 36 // of buckets. During loading the loader object is locked, (for the VM loader 37 // a private lock object is used). Class loading can thus be done concurrently, 38 // but only by different loaders. 39 // 40 // During loading a placeholder (name, loader) is temporarily placed in 41 // a side data structure, and is used to detect ClassCircularityErrors 42 // and to perform verification during GC. A GC can occur in the midst 43 // of class loading, as we call out to Java, have to take locks, etc. 44 // 45 // When class loading is finished, a new entry is added to the system 46 // dictionary and the place holder is removed. Note that the protection 47 // domain field of the system dictionary has not yet been filled in when 48 // the "real" system dictionary entry is created. 49 // 50 // Clients of this class who are interested in finding if a class has 51 // been completely loaded -- not classes in the process of being loaded -- 52 // can read the SystemDictionary unlocked. This is safe because 53 // - entries are only deleted at safepoints 54 // - readers cannot come to a safepoint while actively examining 55 // an entry (an entry cannot be deleted from under a reader) 56 // - entries must be fully formed before they are available to concurrent 57 // readers (we must ensure write ordering) 58 // 59 // Note that placeholders are deleted at any time, as they are removed 60 // when a class is completely loaded. Therefore, readers as well as writers 61 // of placeholders must hold the SystemDictionary_lock. 62 // 63 64 class Dictionary; 65 class PlaceholderTable; 66 class LoaderConstraintTable; 67 class HashtableBucket; 68 class ResolutionErrorTable; 69 70 class SystemDictionary : AllStatic { 71 friend class VMStructs; 72 friend class CompactingPermGenGen; 73 NOT_PRODUCT(friend class instanceKlassKlass;) 74 75 public: 76 // Returns a class with a given class name and class loader. Loads the 77 // class if needed. If not found a NoClassDefFoundError or a 78 // ClassNotFoundException is thrown, depending on the value on the 79 // throw_error flag. For most uses the throw_error argument should be set 80 // to true. 81 82 static klassOop resolve_or_fail(symbolHandle class_name, Handle class_loader, Handle protection_domain, bool throw_error, TRAPS); 83 // Convenient call for null loader and protection domain. 84 static klassOop resolve_or_fail(symbolHandle class_name, bool throw_error, TRAPS); 85 private: 86 // handle error translation for resolve_or_null results 87 static klassOop handle_resolution_exception(symbolHandle class_name, Handle class_loader, Handle protection_domain, bool throw_error, KlassHandle klass_h, TRAPS); 88 89 public: 90 91 // Returns a class with a given class name and class loader. 92 // Loads the class if needed. If not found NULL is returned. 93 static klassOop resolve_or_null(symbolHandle class_name, Handle class_loader, Handle protection_domain, TRAPS); 94 // Version with null loader and protection domain 95 static klassOop resolve_or_null(symbolHandle class_name, TRAPS); 96 97 // Resolve a superclass or superinterface. Called from ClassFileParser, 98 // parse_interfaces, resolve_instance_class_or_null, load_shared_class 99 // "child_name" is the class whose super class or interface is being resolved. 100 static klassOop resolve_super_or_fail(symbolHandle child_name, 101 symbolHandle class_name, 102 Handle class_loader, 103 Handle protection_domain, 104 bool is_superclass, 105 TRAPS); 106 107 // Parse new stream. This won't update the system dictionary or 108 // class hierarchy, simply parse the stream. Used by JVMTI RedefineClasses. 109 static klassOop parse_stream(symbolHandle class_name, 110 Handle class_loader, 111 Handle protection_domain, 112 ClassFileStream* st, 113 TRAPS); 114 115 // Resolve from stream (called by jni_DefineClass and JVM_DefineClass) 116 static klassOop resolve_from_stream(symbolHandle class_name, Handle class_loader, Handle protection_domain, ClassFileStream* st, TRAPS); 117 118 // Lookup an already loaded class. If not found NULL is returned. 119 static klassOop find(symbolHandle class_name, Handle class_loader, Handle protection_domain, TRAPS); 120 121 // Lookup an already loaded instance or array class. 122 // Do not make any queries to class loaders; consult only the cache. 123 // If not found NULL is returned. 124 static klassOop find_instance_or_array_klass(symbolHandle class_name, 125 Handle class_loader, 126 Handle protection_domain, 127 TRAPS); 128 129 // Lookup an instance or array class that has already been loaded 130 // either into the given class loader, or else into another class 131 // loader that is constrained (via loader constraints) to produce 132 // a consistent class. Do not take protection domains into account. 133 // Do not make any queries to class loaders; consult only the cache. 134 // Return NULL if the class is not found. 135 // 136 // This function is a strict superset of find_instance_or_array_klass. 137 // This function (the unchecked version) makes a conservative prediction 138 // of the result of the checked version, assuming successful lookup. 139 // If both functions return non-null, they must return the same value. 140 // Also, the unchecked version may sometimes be non-null where the 141 // checked version is null. This can occur in several ways: 142 // 1. No query has yet been made to the class loader. 143 // 2. The class loader was queried, but chose not to delegate. 144 // 3. ClassLoader.checkPackageAccess rejected a proposed protection domain. 145 // 4. Loading was attempted, but there was a linkage error of some sort. 146 // In all of these cases, the loader constraints on this type are 147 // satisfied, and it is safe for classes in the given class loader 148 // to manipulate strongly-typed values of the found class, subject 149 // to local linkage and access checks. 150 static klassOop find_constrained_instance_or_array_klass(symbolHandle class_name, 151 Handle class_loader, 152 TRAPS); 153 154 // Iterate over all klasses in dictionary 155 // Just the classes from defining class loaders 156 static void classes_do(void f(klassOop)); 157 // Added for initialize_itable_for_klass to handle exceptions 158 static void classes_do(void f(klassOop, TRAPS), TRAPS); 159 // All classes, and their class loaders 160 static void classes_do(void f(klassOop, oop)); 161 // All classes, and their class loaders 162 // (added for helpers that use HandleMarks and ResourceMarks) 163 static void classes_do(void f(klassOop, oop, TRAPS), TRAPS); 164 // All entries in the placeholder table and their class loaders 165 static void placeholders_do(void f(symbolOop, oop)); 166 167 // Iterate over all methods in all klasses in dictionary 168 static void methods_do(void f(methodOop)); 169 170 // Garbage collection support 171 172 // This method applies "blk->do_oop" to all the pointers to "system" 173 // classes and loaders. 174 static void always_strong_oops_do(OopClosure* blk); 175 static void always_strong_classes_do(OopClosure* blk); 176 // This method applies "blk->do_oop" to all the placeholders. 177 static void placeholders_do(OopClosure* blk); 178 179 // Unload (that is, break root links to) all unmarked classes and 180 // loaders. Returns "true" iff something was unloaded. 181 static bool do_unloading(BoolObjectClosure* is_alive); 182 183 // Applies "f->do_oop" to all root oops in the system dictionary. 184 static void oops_do(OopClosure* f); 185 186 // System loader lock 187 static oop system_loader_lock() { return _system_loader_lock_obj; } 188 189 private: 190 // Traverses preloaded oops: various system classes. These are 191 // guaranteed to be in the perm gen. 192 static void preloaded_oops_do(OopClosure* f); 193 static void lazily_loaded_oops_do(OopClosure* f); 194 195 public: 196 // Sharing support. 197 static void reorder_dictionary(); 198 static void copy_buckets(char** top, char* end); 199 static void copy_table(char** top, char* end); 200 static void reverse(); 201 static void set_shared_dictionary(HashtableBucket* t, int length, 202 int number_of_entries); 203 // Printing 204 static void print() PRODUCT_RETURN; 205 static void print_class_statistics() PRODUCT_RETURN; 206 static void print_method_statistics() PRODUCT_RETURN; 207 208 // Number of contained klasses 209 // This is both fully loaded classes and classes in the process 210 // of being loaded 211 static int number_of_classes(); 212 213 // Monotonically increasing counter which grows as classes are 214 // loaded or modifications such as hot-swapping or setting/removing 215 // of breakpoints are performed 216 static inline int number_of_modifications() { assert_locked_or_safepoint(Compile_lock); return _number_of_modifications; } 217 // Needed by evolution and breakpoint code 218 static inline void notice_modification() { assert_locked_or_safepoint(Compile_lock); ++_number_of_modifications; } 219 220 // Verification 221 static void verify(); 222 223 #ifdef ASSERT 224 static bool is_internal_format(symbolHandle class_name); 225 #endif 226 227 // Verify class is in dictionary 228 static void verify_obj_klass_present(Handle obj, 229 symbolHandle class_name, 230 Handle class_loader); 231 232 // Initialization 233 static void initialize(TRAPS); 234 235 // Fast access to commonly used classes (preloaded) 236 static klassOop check_klass(klassOop k) { 237 assert(k != NULL, "preloaded klass not initialized"); 238 return k; 239 } 240 241 public: 242 static klassOop object_klass() { return check_klass(_object_klass); } 243 static klassOop string_klass() { return check_klass(_string_klass); } 244 static klassOop class_klass() { return check_klass(_class_klass); } 245 static klassOop cloneable_klass() { return check_klass(_cloneable_klass); } 246 static klassOop classloader_klass() { return check_klass(_classloader_klass); } 247 static klassOop serializable_klass() { return check_klass(_serializable_klass); } 248 static klassOop system_klass() { return check_klass(_system_klass); } 249 250 static klassOop throwable_klass() { return check_klass(_throwable_klass); } 251 static klassOop error_klass() { return check_klass(_error_klass); } 252 static klassOop threaddeath_klass() { return check_klass(_threaddeath_klass); } 253 static klassOop exception_klass() { return check_klass(_exception_klass); } 254 static klassOop runtime_exception_klass() { return check_klass(_runtime_exception_klass); } 255 static klassOop classNotFoundException_klass() { return check_klass(_classNotFoundException_klass); } 256 static klassOop noClassDefFoundError_klass() { return check_klass(_noClassDefFoundError_klass); } 257 static klassOop linkageError_klass() { return check_klass(_linkageError_klass); } 258 static klassOop ClassCastException_klass() { return check_klass(_classCastException_klass); } 259 static klassOop ArrayStoreException_klass() { return check_klass(_arrayStoreException_klass); } 260 static klassOop virtualMachineError_klass() { return check_klass(_virtualMachineError_klass); } 261 static klassOop OutOfMemoryError_klass() { return check_klass(_outOfMemoryError_klass); } 262 static klassOop StackOverflowError_klass() { return check_klass(_StackOverflowError_klass); } 263 static klassOop IllegalMonitorStateException_klass() { return check_klass(_illegalMonitorStateException_klass); } 264 static klassOop protectionDomain_klass() { return check_klass(_protectionDomain_klass); } 265 static klassOop AccessControlContext_klass() { return check_klass(_AccessControlContext_klass); } 266 static klassOop reference_klass() { return check_klass(_reference_klass); } 267 static klassOop soft_reference_klass() { return check_klass(_soft_reference_klass); } 268 static klassOop weak_reference_klass() { return check_klass(_weak_reference_klass); } 269 static klassOop final_reference_klass() { return check_klass(_final_reference_klass); } 270 static klassOop phantom_reference_klass() { return check_klass(_phantom_reference_klass); } 271 static klassOop finalizer_klass() { return check_klass(_finalizer_klass); } 272 273 static klassOop thread_klass() { return check_klass(_thread_klass); } 274 static klassOop threadGroup_klass() { return check_klass(_threadGroup_klass); } 275 static klassOop properties_klass() { return check_klass(_properties_klass); } 276 static klassOop reflect_accessible_object_klass() { return check_klass(_reflect_accessible_object_klass); } 277 static klassOop reflect_field_klass() { return check_klass(_reflect_field_klass); } 278 static klassOop reflect_method_klass() { return check_klass(_reflect_method_klass); } 279 static klassOop reflect_constructor_klass() { return check_klass(_reflect_constructor_klass); } 280 static klassOop reflect_method_accessor_klass() { 281 assert(JDK_Version::is_gte_jdk14x_version() && UseNewReflection, "JDK 1.4 only"); 282 return check_klass(_reflect_method_accessor_klass); 283 } 284 static klassOop reflect_constructor_accessor_klass() { 285 assert(JDK_Version::is_gte_jdk14x_version() && UseNewReflection, "JDK 1.4 only"); 286 return check_klass(_reflect_constructor_accessor_klass); 287 } 288 // NOTE: needed too early in bootstrapping process to have checks based on JDK version 289 static klassOop reflect_magic_klass() { return _reflect_magic_klass; } 290 static klassOop reflect_delegating_classloader_klass() { return _reflect_delegating_classloader_klass; } 291 static klassOop reflect_constant_pool_klass() { 292 assert(JDK_Version::is_gte_jdk15x_version(), "JDK 1.5 only"); 293 return _reflect_constant_pool_klass; 294 } 295 static klassOop reflect_unsafe_static_field_accessor_impl_klass() { 296 assert(JDK_Version::is_gte_jdk15x_version(), "JDK 1.5 only"); 297 return _reflect_unsafe_static_field_accessor_impl_klass; 298 } 299 300 static klassOop vector_klass() { return check_klass(_vector_klass); } 301 static klassOop hashtable_klass() { return check_klass(_hashtable_klass); } 302 static klassOop stringBuffer_klass() { return check_klass(_stringBuffer_klass); } 303 static klassOop stackTraceElement_klass() { return check_klass(_stackTraceElement_klass); } 304 305 static klassOop java_nio_Buffer_klass() { return check_klass(_java_nio_Buffer_klass); } 306 307 static klassOop sun_misc_AtomicLongCSImpl_klass() { return _sun_misc_AtomicLongCSImpl_klass; } 308 309 // To support incremental JRE downloads (KERNEL JRE). Null if not present. 310 static klassOop sun_jkernel_DownloadManager_klass() { return _sun_jkernel_DownloadManager_klass; } 311 312 static klassOop boolean_klass() { return check_klass(_boolean_klass); } 313 static klassOop char_klass() { return check_klass(_char_klass); } 314 static klassOop float_klass() { return check_klass(_float_klass); } 315 static klassOop double_klass() { return check_klass(_double_klass); } 316 static klassOop byte_klass() { return check_klass(_byte_klass); } 317 static klassOop short_klass() { return check_klass(_short_klass); } 318 static klassOop int_klass() { return check_klass(_int_klass); } 319 static klassOop long_klass() { return check_klass(_long_klass); } 320 321 static klassOop box_klass(BasicType t) { 322 assert((uint)t < T_VOID+1, "range check"); 323 return check_klass(_box_klasses[t]); 324 } 325 static BasicType box_klass_type(klassOop k); // inverse of box_klass 326 327 // methods returning lazily loaded klasses 328 // The corresponding method to load the class must be called before calling them. 329 static klassOop abstract_ownable_synchronizer_klass() { return check_klass(_abstract_ownable_synchronizer_klass); } 330 331 static void load_abstract_ownable_synchronizer_klass(TRAPS); 332 333 private: 334 // Tells whether ClassLoader.loadClassInternal is present 335 static bool has_loadClassInternal() { return _has_loadClassInternal; } 336 337 public: 338 // Tells whether ClassLoader.checkPackageAccess is present 339 static bool has_checkPackageAccess() { return _has_checkPackageAccess; } 340 341 static bool class_klass_loaded() { return _class_klass != NULL; } 342 static bool cloneable_klass_loaded() { return _cloneable_klass != NULL; } 343 344 // Returns default system loader 345 static oop java_system_loader(); 346 347 // Compute the default system loader 348 static void compute_java_system_loader(TRAPS); 349 350 private: 351 // Mirrors for primitive classes (created eagerly) 352 static oop check_mirror(oop m) { 353 assert(m != NULL, "mirror not initialized"); 354 return m; 355 } 356 357 public: 358 // Note: java_lang_Class::primitive_type is the inverse of java_mirror 359 360 // Check class loader constraints 361 static bool add_loader_constraint(symbolHandle name, Handle loader1, 362 Handle loader2, TRAPS); 363 static char* check_signature_loaders(symbolHandle signature, Handle loader1, 364 Handle loader2, bool is_method, TRAPS); 365 366 // Utility for printing loader "name" as part of tracing constraints 367 static const char* loader_name(oop loader) { 368 return ((loader) == NULL ? "<bootloader>" : 369 instanceKlass::cast((loader)->klass())->name()->as_C_string() ); 370 } 371 372 // Record the error when the first attempt to resolve a reference from a constant 373 // pool entry to a class fails. 374 static void add_resolution_error(constantPoolHandle pool, int which, symbolHandle error); 375 static symbolOop find_resolution_error(constantPoolHandle pool, int which); 376 377 private: 378 379 enum Constants { 380 _loader_constraint_size = 107, // number of entries in constraint table 381 _resolution_error_size = 107, // number of entries in resolution error table 382 _nof_buckets = 1009 // number of buckets in hash table 383 }; 384 385 386 // Static variables 387 388 // Hashtable holding loaded classes. 389 static Dictionary* _dictionary; 390 391 // Hashtable holding placeholders for classes being loaded. 392 static PlaceholderTable* _placeholders; 393 394 // Hashtable holding classes from the shared archive. 395 static Dictionary* _shared_dictionary; 396 397 // Monotonically increasing counter which grows with 398 // _number_of_classes as well as hot-swapping and breakpoint setting 399 // and removal. 400 static int _number_of_modifications; 401 402 // Lock object for system class loader 403 static oop _system_loader_lock_obj; 404 405 // Constraints on class loaders 406 static LoaderConstraintTable* _loader_constraints; 407 408 // Resolution errors 409 static ResolutionErrorTable* _resolution_errors; 410 411 public: 412 // for VM_CounterDecay iteration support 413 friend class CounterDecay; 414 static klassOop try_get_next_class(); 415 416 private: 417 static void validate_protection_domain(instanceKlassHandle klass, 418 Handle class_loader, 419 Handle protection_domain, TRAPS); 420 421 friend class VM_PopulateDumpSharedSpace; 422 friend class TraversePlaceholdersClosure; 423 static Dictionary* dictionary() { return _dictionary; } 424 static Dictionary* shared_dictionary() { return _shared_dictionary; } 425 static PlaceholderTable* placeholders() { return _placeholders; } 426 static LoaderConstraintTable* constraints() { return _loader_constraints; } 427 static ResolutionErrorTable* resolution_errors() { return _resolution_errors; } 428 429 // Basic loading operations 430 static klassOop resolve_instance_class_or_null(symbolHandle class_name, Handle class_loader, Handle protection_domain, TRAPS); 431 static klassOop resolve_array_class_or_null(symbolHandle class_name, Handle class_loader, Handle protection_domain, TRAPS); 432 static instanceKlassHandle handle_parallel_super_load(symbolHandle class_name, symbolHandle supername, Handle class_loader, Handle protection_domain, Handle lockObject, TRAPS); 433 // Wait on SystemDictionary_lock; unlocks lockObject before 434 // waiting; relocks lockObject with correct recursion count 435 // after waiting, but before reentering SystemDictionary_lock 436 // to preserve lock order semantics. 437 static void double_lock_wait(Handle lockObject, TRAPS); 438 static void define_instance_class(instanceKlassHandle k, TRAPS); 439 static instanceKlassHandle find_or_define_instance_class(symbolHandle class_name, 440 Handle class_loader, 441 instanceKlassHandle k, TRAPS); 442 static instanceKlassHandle load_shared_class(symbolHandle class_name, 443 Handle class_loader, TRAPS); 444 static instanceKlassHandle load_shared_class(instanceKlassHandle ik, 445 Handle class_loader, TRAPS); 446 static instanceKlassHandle load_instance_class(symbolHandle class_name, Handle class_loader, TRAPS); 447 static Handle compute_loader_lock_object(Handle class_loader, TRAPS); 448 static void check_loader_lock_contention(Handle loader_lock, TRAPS); 449 450 static klassOop find_shared_class(symbolHandle class_name); 451 452 // Setup link to hierarchy 453 static void add_to_hierarchy(instanceKlassHandle k, TRAPS); 454 455 private: 456 // We pass in the hashtable index so we can calculate it outside of 457 // the SystemDictionary_lock. 458 459 // Basic find on loaded classes 460 static klassOop find_class(int index, unsigned int hash, 461 symbolHandle name, Handle loader); 462 463 // Basic find on classes in the midst of being loaded 464 static symbolOop find_placeholder(int index, unsigned int hash, 465 symbolHandle name, Handle loader); 466 467 // Basic find operation of loaded classes and classes in the midst 468 // of loading; used for assertions and verification only. 469 static oop find_class_or_placeholder(symbolHandle class_name, 470 Handle class_loader); 471 472 // Updating entry in dictionary 473 // Add a completely loaded class 474 static void add_klass(int index, symbolHandle class_name, 475 Handle class_loader, KlassHandle obj); 476 477 // Add a placeholder for a class being loaded 478 static void add_placeholder(int index, 479 symbolHandle class_name, 480 Handle class_loader); 481 static void remove_placeholder(int index, 482 symbolHandle class_name, 483 Handle class_loader); 484 485 // Performs cleanups after resolve_super_or_fail. This typically needs 486 // to be called on failure. 487 // Won't throw, but can block. 488 static void resolution_cleanups(symbolHandle class_name, 489 Handle class_loader, 490 TRAPS); 491 492 // Initialization 493 static void initialize_preloaded_classes(TRAPS); 494 495 // Class loader constraints 496 static void check_constraints(int index, unsigned int hash, 497 instanceKlassHandle k, Handle loader, 498 bool defining, TRAPS); 499 static void update_dictionary(int d_index, unsigned int d_hash, 500 int p_index, unsigned int p_hash, 501 instanceKlassHandle k, Handle loader, TRAPS); 502 503 // Variables holding commonly used klasses (preloaded) 504 static klassOop _object_klass; 505 static klassOop _string_klass; 506 static klassOop _class_klass; 507 static klassOop _cloneable_klass; 508 static klassOop _classloader_klass; 509 static klassOop _serializable_klass; 510 static klassOop _system_klass; 511 512 static klassOop _throwable_klass; 513 static klassOop _error_klass; 514 static klassOop _threaddeath_klass; 515 static klassOop _exception_klass; 516 static klassOop _runtime_exception_klass; 517 static klassOop _classNotFoundException_klass; 518 static klassOop _noClassDefFoundError_klass; 519 static klassOop _linkageError_klass; 520 static klassOop _classCastException_klass; 521 static klassOop _arrayStoreException_klass; 522 static klassOop _virtualMachineError_klass; 523 static klassOop _outOfMemoryError_klass; 524 static klassOop _StackOverflowError_klass; 525 static klassOop _illegalMonitorStateException_klass; 526 static klassOop _protectionDomain_klass; 527 static klassOop _AccessControlContext_klass; 528 static klassOop _reference_klass; 529 static klassOop _soft_reference_klass; 530 static klassOop _weak_reference_klass; 531 static klassOop _final_reference_klass; 532 static klassOop _phantom_reference_klass; 533 static klassOop _finalizer_klass; 534 535 static klassOop _thread_klass; 536 static klassOop _threadGroup_klass; 537 static klassOop _properties_klass; 538 static klassOop _reflect_accessible_object_klass; 539 static klassOop _reflect_field_klass; 540 static klassOop _reflect_method_klass; 541 static klassOop _reflect_constructor_klass; 542 // 1.4 reflection implementation 543 static klassOop _reflect_magic_klass; 544 static klassOop _reflect_method_accessor_klass; 545 static klassOop _reflect_constructor_accessor_klass; 546 static klassOop _reflect_delegating_classloader_klass; 547 // 1.5 annotations implementation 548 static klassOop _reflect_constant_pool_klass; 549 static klassOop _reflect_unsafe_static_field_accessor_impl_klass; 550 551 static klassOop _stringBuffer_klass; 552 static klassOop _vector_klass; 553 static klassOop _hashtable_klass; 554 555 static klassOop _stackTraceElement_klass; 556 557 static klassOop _java_nio_Buffer_klass; 558 559 static klassOop _sun_misc_AtomicLongCSImpl_klass; 560 561 // KERNEL JRE support. 562 static klassOop _sun_jkernel_DownloadManager_klass; 563 564 // Lazily loaded klasses 565 static volatile klassOop _abstract_ownable_synchronizer_klass; 566 567 // Box klasses 568 static klassOop _boolean_klass; 569 static klassOop _char_klass; 570 static klassOop _float_klass; 571 static klassOop _double_klass; 572 static klassOop _byte_klass; 573 static klassOop _short_klass; 574 static klassOop _int_klass; 575 static klassOop _long_klass; 576 577 // table of same 578 static klassOop _box_klasses[T_VOID+1]; 579 580 static oop _java_system_loader; 581 582 static bool _has_loadClassInternal; 583 static bool _has_checkPackageAccess; 584 };