universe.hpp revision 1472:c18cbe5936b8
162587Sitojun/* 291671Sume * Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved. 362587Sitojun * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 455009Sshin * 555009Sshin * This code is free software; you can redistribute it and/or modify it 655009Sshin * under the terms of the GNU General Public License version 2 only, as 755009Sshin * published by the Free Software Foundation. 855009Sshin * 955009Sshin * This code is distributed in the hope that it will be useful, but WITHOUT 1055009Sshin * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1155009Sshin * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1255009Sshin * version 2 for more details (a copy is included in the LICENSE file that 1355009Sshin * accompanied this code). 1455009Sshin * 1555009Sshin * You should have received a copy of the GNU General Public License version 1655009Sshin * 2 along with this work; if not, write to the Free Software Foundation, 1755009Sshin * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1855009Sshin * 1955009Sshin * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2055009Sshin * or visit www.oracle.com if you need additional information or have any 2155009Sshin * questions. 2255009Sshin * 2355009Sshin */ 2455009Sshin 2555009Sshin// Universe is a name space holding known system classes and objects in the VM. 2655009Sshin// 2755009Sshin// Loaded classes are accessible through the SystemDictionary. 2855009Sshin// 2955009Sshin// The object heap is allocated and accessed through Universe, and various allocation 3055009Sshin// support is provided. Allocation by the interpreter and compiled code is done inline 3155009Sshin// and bails out to Scavenge::invoke_and_allocate. 3255009Sshin 3355009Sshinclass CollectedHeap; 3455009Sshinclass DeferredObjAllocEvent; 3555009Sshin 3655009Sshin 3755009Sshin// Common parts of a methodOop cache. This cache safely interacts with 3855009Sshin// the RedefineClasses API. 3955009Sshin// 4055009Sshinclass CommonMethodOopCache : public CHeapObj { 4155009Sshin // We save the klassOop and the idnum of methodOop in order to get 4255009Sshin // the current cached methodOop. 4355009Sshin private: 4455009Sshin klassOop _klass; 4555009Sshin int _method_idnum; 4655009Sshin 4755009Sshin public: 4855009Sshin CommonMethodOopCache() { _klass = NULL; _method_idnum = -1; } 4955009Sshin ~CommonMethodOopCache() { _klass = NULL; _method_idnum = -1; } 5055009Sshin 5155009Sshin void init(klassOop k, methodOop m, TRAPS); 5255009Sshin klassOop klass() const { return _klass; } 5355009Sshin int method_idnum() const { return _method_idnum; } 5455009Sshin 5555009Sshin // GC support 5655009Sshin void oops_do(OopClosure* f) { f->do_oop((oop*)&_klass); } 5755009Sshin}; 5855009Sshin 5955009Sshin 6055009Sshin// A helper class for caching a methodOop when the user of the cache 6155009Sshin// cares about all versions of the methodOop. 6291671Sume// 6355009Sshinclass ActiveMethodOopsCache : public CommonMethodOopCache { 6455009Sshin // This subclass adds weak references to older versions of the 6555009Sshin // methodOop and a query method for a methodOop. 6655009Sshin 6755009Sshin private: 6855009Sshin // If the cached methodOop has not been redefined, then 6955009Sshin // _prev_methods will be NULL. If all of the previous 7055009Sshin // versions of the method have been collected, then 7155009Sshin // _prev_methods can have a length of zero. 7255009Sshin GrowableArray<jweak>* _prev_methods; 7355009Sshin 7455009Sshin public: 7555009Sshin ActiveMethodOopsCache() { _prev_methods = NULL; } 7655009Sshin ~ActiveMethodOopsCache(); 7755009Sshin 7855009Sshin void add_previous_version(const methodOop method); 7955009Sshin bool is_same_method(const methodOop method) const; 8055009Sshin}; 8155009Sshin 8255009Sshin 8355009Sshin// A helper class for caching a methodOop when the user of the cache 8455009Sshin// only cares about the latest version of the methodOop. 8555009Sshin// 8655009Sshinclass LatestMethodOopCache : public CommonMethodOopCache { 8755009Sshin // This subclass adds a getter method for the latest methodOop. 8855009Sshin 8955009Sshin public: 9055009Sshin methodOop get_methodOop(); 9155009Sshin}; 9255009Sshin 9355009Sshin// For UseCompressedOops. 9455009Sshinstruct NarrowOopStruct { 9555009Sshin // Base address for oop-within-java-object materialization. 9655009Sshin // NULL if using wide oops or zero based narrow oops. 9755009Sshin address _base; 9855009Sshin // Number of shift bits for encoding/decoding narrow oops. 9955009Sshin // 0 if using wide oops or zero based unscaled narrow oops, 10055009Sshin // LogMinObjAlignmentInBytes otherwise. 10155009Sshin int _shift; 10255009Sshin // Generate code with implicit null checks for narrow oops. 10355009Sshin bool _use_implicit_null_checks; 10455009Sshin}; 10555009Sshin 10655009Sshin 10755009Sshinclass Universe: AllStatic { 10855009Sshin // Ugh. Universe is much too friendly. 10955009Sshin friend class MarkSweep; 11055009Sshin friend class oopDesc; 11155009Sshin friend class ClassLoader; 11255009Sshin friend class Arguments; 11355009Sshin friend class SystemDictionary; 11455009Sshin friend class VMStructs; 11555009Sshin friend class CompactingPermGenGen; 11655009Sshin friend class VM_PopulateDumpSharedSpace; 11755009Sshin 11855009Sshin friend jint universe_init(); 11955009Sshin friend void universe2_init(); 12055009Sshin friend bool universe_post_init(); 12155009Sshin 12255009Sshin private: 12355009Sshin // Known classes in the VM 12455009Sshin static klassOop _boolArrayKlassObj; 12555009Sshin static klassOop _byteArrayKlassObj; 12655009Sshin static klassOop _charArrayKlassObj; 12755009Sshin static klassOop _intArrayKlassObj; 12855009Sshin static klassOop _shortArrayKlassObj; 12955009Sshin static klassOop _longArrayKlassObj; 13055009Sshin static klassOop _singleArrayKlassObj; 13155009Sshin static klassOop _doubleArrayKlassObj; 13255009Sshin static klassOop _typeArrayKlassObjs[T_VOID+1]; 13355009Sshin 13455009Sshin static klassOop _objectArrayKlassObj; 13555009Sshin 13655009Sshin static klassOop _symbolKlassObj; 13755009Sshin static klassOop _methodKlassObj; 13855009Sshin static klassOop _constMethodKlassObj; 13955009Sshin static klassOop _methodDataKlassObj; 14055009Sshin static klassOop _klassKlassObj; 14155009Sshin static klassOop _arrayKlassKlassObj; 14255009Sshin static klassOop _objArrayKlassKlassObj; 14355009Sshin static klassOop _typeArrayKlassKlassObj; 14455009Sshin static klassOop _instanceKlassKlassObj; 14555009Sshin static klassOop _constantPoolKlassObj; 14655009Sshin static klassOop _constantPoolCacheKlassObj; 14755009Sshin static klassOop _compiledICHolderKlassObj; 14855009Sshin static klassOop _systemObjArrayKlassObj; 14955009Sshin 15055009Sshin // Known objects in the VM 15155009Sshin 15255009Sshin // Primitive objects 15355009Sshin static oop _int_mirror; 15455009Sshin static oop _float_mirror; 15555009Sshin static oop _double_mirror; 15655009Sshin static oop _byte_mirror; 15755009Sshin static oop _bool_mirror; 15855009Sshin static oop _char_mirror; 15955009Sshin static oop _long_mirror; 16055009Sshin static oop _short_mirror; 16155009Sshin static oop _void_mirror; 16255009Sshin 16355009Sshin static oop _main_thread_group; // Reference to the main thread group object 16455009Sshin static oop _system_thread_group; // Reference to the system thread group object 16555009Sshin 16655009Sshin static typeArrayOop _the_empty_byte_array; // Canonicalized byte array 16755009Sshin static typeArrayOop _the_empty_short_array; // Canonicalized short array 16855009Sshin static typeArrayOop _the_empty_int_array; // Canonicalized int array 16955009Sshin static objArrayOop _the_empty_system_obj_array; // Canonicalized system obj array 17055009Sshin static objArrayOop _the_empty_class_klass_array; // Canonicalized obj array of type java.lang.Class 17155009Sshin static objArrayOop _the_array_interfaces_array; // Canonicalized 2-array of cloneable & serializable klasses 17255009Sshin static oop _the_null_string; // A cache of "null" as a Java string 17355009Sshin static oop _the_min_jint_string; // A cache of "-2147483648" as a Java string 17455009Sshin static LatestMethodOopCache* _finalizer_register_cache; // static method for registering finalizable objects 17555009Sshin static LatestMethodOopCache* _loader_addClass_cache; // method for registering loaded classes in class loader vector 17655009Sshin static ActiveMethodOopsCache* _reflect_invoke_cache; // method for security checks 17755009Sshin static oop _out_of_memory_error_java_heap; // preallocated error object (no backtrace) 17855009Sshin static oop _out_of_memory_error_perm_gen; // preallocated error object (no backtrace) 17955009Sshin static oop _out_of_memory_error_array_size;// preallocated error object (no backtrace) 18055009Sshin static oop _out_of_memory_error_gc_overhead_limit; // preallocated error object (no backtrace) 18155009Sshin 18255009Sshin // array of preallocated error objects with backtrace 18355009Sshin static objArrayOop _preallocated_out_of_memory_error_array; 18455009Sshin 18555009Sshin // number of preallocated error objects available for use 18655009Sshin static volatile jint _preallocated_out_of_memory_error_avail_count; 18755009Sshin 18855009Sshin static oop _null_ptr_exception_instance; // preallocated exception object 18955009Sshin static oop _arithmetic_exception_instance; // preallocated exception object 19055009Sshin static oop _virtual_machine_error_instance; // preallocated exception object 19155009Sshin // The object used as an exception dummy when exceptions are thrown for 19255009Sshin // the vm thread. 19355009Sshin static oop _vm_exception; 19455009Sshin 19555009Sshin static oop _emptySymbol; // Canonical empty string ("") symbol 19655009Sshin 19755009Sshin // The particular choice of collected heap. 19855009Sshin static CollectedHeap* _collectedHeap; 19955009Sshin 20055009Sshin // For UseCompressedOops. 20155009Sshin static struct NarrowOopStruct _narrow_oop; 20255009Sshin 20355009Sshin // array of dummy objects used with +FullGCAlot 20455009Sshin debug_only(static objArrayOop _fullgc_alot_dummy_array;) 20555009Sshin // index of next entry to clear 20655009Sshin debug_only(static int _fullgc_alot_dummy_next;) 20755009Sshin 20855009Sshin // Compiler/dispatch support 20955009Sshin static int _base_vtable_size; // Java vtbl size of klass Object (in words) 21055009Sshin 21155009Sshin // Initialization 21255009Sshin static bool _bootstrapping; // true during genesis 21355009Sshin static bool _fully_initialized; // true after universe_init and initialize_vtables called 21455009Sshin 21555009Sshin // the array of preallocated errors with backtraces 21655009Sshin static objArrayOop preallocated_out_of_memory_errors() { return _preallocated_out_of_memory_error_array; } 21755009Sshin 21855009Sshin // generate an out of memory error; if possible using an error with preallocated backtrace; 21955009Sshin // otherwise return the given default error. 22055009Sshin static oop gen_out_of_memory_error(oop default_err); 22155009Sshin 22255009Sshin // Historic gc information 22355009Sshin static size_t _heap_capacity_at_last_gc; 22455009Sshin static size_t _heap_used_at_last_gc; 22555009Sshin 22655009Sshin static jint initialize_heap(); 22755009Sshin static void initialize_basic_type_mirrors(TRAPS); 22855009Sshin static void fixup_mirrors(TRAPS); 22955009Sshin 23055009Sshin static void reinitialize_vtable_of(KlassHandle h_k, TRAPS); 23155009Sshin static void reinitialize_itables(TRAPS); 23255009Sshin static void compute_base_vtable_size(); // compute vtable size of class Object 23355009Sshin 23455009Sshin static void genesis(TRAPS); // Create the initial world 23555009Sshin 23655009Sshin // Mirrors for primitive classes (created eagerly) 23755009Sshin static oop check_mirror(oop m) { 23855009Sshin assert(m != NULL, "mirror not initialized"); 23955009Sshin return m; 24055009Sshin } 24155009Sshin 24255009Sshin // Debugging 24355009Sshin static int _verify_count; // number of verifies done 24455009Sshin // True during call to verify(). Should only be set/cleared in verify(). 24555009Sshin static bool _verify_in_progress; 24655009Sshin 24755009Sshin static void compute_verify_oop_data(); 24855009Sshin 24955009Sshin public: 25055009Sshin // Known classes in the VM 25155009Sshin static klassOop boolArrayKlassObj() { return _boolArrayKlassObj; } 25255009Sshin static klassOop byteArrayKlassObj() { return _byteArrayKlassObj; } 25355009Sshin static klassOop charArrayKlassObj() { return _charArrayKlassObj; } 25455009Sshin static klassOop intArrayKlassObj() { return _intArrayKlassObj; } 25555009Sshin static klassOop shortArrayKlassObj() { return _shortArrayKlassObj; } 25655009Sshin static klassOop longArrayKlassObj() { return _longArrayKlassObj; } 25755009Sshin static klassOop singleArrayKlassObj() { return _singleArrayKlassObj; } 25855009Sshin static klassOop doubleArrayKlassObj() { return _doubleArrayKlassObj; } 25955009Sshin 26055009Sshin static klassOop objectArrayKlassObj() { 26155009Sshin return _objectArrayKlassObj; 26255009Sshin } 26355009Sshin 26455009Sshin static klassOop typeArrayKlassObj(BasicType t) { 26555009Sshin assert((uint)t < T_VOID+1, "range check"); 26655009Sshin assert(_typeArrayKlassObjs[t] != NULL, "domain check"); 26755009Sshin return _typeArrayKlassObjs[t]; 26855009Sshin } 26955009Sshin 27055009Sshin static klassOop symbolKlassObj() { return _symbolKlassObj; } 27155009Sshin static klassOop methodKlassObj() { return _methodKlassObj; } 27255009Sshin static klassOop constMethodKlassObj() { return _constMethodKlassObj; } 27355009Sshin static klassOop methodDataKlassObj() { return _methodDataKlassObj; } 27455009Sshin static klassOop klassKlassObj() { return _klassKlassObj; } 27555009Sshin static klassOop arrayKlassKlassObj() { return _arrayKlassKlassObj; } 27655009Sshin static klassOop objArrayKlassKlassObj() { return _objArrayKlassKlassObj; } 27755009Sshin static klassOop typeArrayKlassKlassObj() { return _typeArrayKlassKlassObj; } 27855009Sshin static klassOop instanceKlassKlassObj() { return _instanceKlassKlassObj; } 27955009Sshin static klassOop constantPoolKlassObj() { return _constantPoolKlassObj; } 28055009Sshin static klassOop constantPoolCacheKlassObj() { return _constantPoolCacheKlassObj; } 28155009Sshin static klassOop compiledICHolderKlassObj() { return _compiledICHolderKlassObj; } 28255009Sshin static klassOop systemObjArrayKlassObj() { return _systemObjArrayKlassObj; } 28355009Sshin 28455009Sshin // Known objects in tbe VM 28555009Sshin static oop int_mirror() { return check_mirror(_int_mirror); 28655009Sshin} 28755009Sshin static oop float_mirror() { return check_mirror(_float_mirror); } 28855009Sshin static oop double_mirror() { return check_mirror(_double_mirror); } 28955009Sshin static oop byte_mirror() { return check_mirror(_byte_mirror); } 29055009Sshin static oop bool_mirror() { return check_mirror(_bool_mirror); } 29155009Sshin static oop char_mirror() { return check_mirror(_char_mirror); } 29255009Sshin static oop long_mirror() { return check_mirror(_long_mirror); } 29355009Sshin static oop short_mirror() { return check_mirror(_short_mirror); } 29455009Sshin static oop void_mirror() { return check_mirror(_void_mirror); } 29555009Sshin 29655009Sshin // table of same 29755009Sshin static oop _mirrors[T_VOID+1]; 29855009Sshin 29955009Sshin static oop java_mirror(BasicType t) { 30055009Sshin assert((uint)t < T_VOID+1, "range check"); 30155009Sshin return check_mirror(_mirrors[t]); 30255009Sshin } 30355009Sshin static oop main_thread_group() { return _main_thread_group; } 30455009Sshin static void set_main_thread_group(oop group) { _main_thread_group = group;} 30555009Sshin 30655009Sshin static oop system_thread_group() { return _system_thread_group; } 30755009Sshin static void set_system_thread_group(oop group) { _system_thread_group = group;} 30855009Sshin 30955009Sshin static typeArrayOop the_empty_byte_array() { return _the_empty_byte_array; } 31055009Sshin static typeArrayOop the_empty_short_array() { return _the_empty_short_array; } 31155009Sshin static typeArrayOop the_empty_int_array() { return _the_empty_int_array; } 31255009Sshin static objArrayOop the_empty_system_obj_array () { return _the_empty_system_obj_array; } 31355009Sshin static objArrayOop the_empty_class_klass_array () { return _the_empty_class_klass_array; } 31455009Sshin static objArrayOop the_array_interfaces_array() { return _the_array_interfaces_array; } 31555009Sshin static oop the_null_string() { return _the_null_string; } 31655009Sshin static oop the_min_jint_string() { return _the_min_jint_string; } 31755009Sshin static methodOop finalizer_register_method() { return _finalizer_register_cache->get_methodOop(); } 31855009Sshin static methodOop loader_addClass_method() { return _loader_addClass_cache->get_methodOop(); } 31955009Sshin static ActiveMethodOopsCache* reflect_invoke_cache() { return _reflect_invoke_cache; } 32055009Sshin static oop null_ptr_exception_instance() { return _null_ptr_exception_instance; } 32155009Sshin static oop arithmetic_exception_instance() { return _arithmetic_exception_instance; } 32255009Sshin static oop virtual_machine_error_instance() { return _virtual_machine_error_instance; } 32355009Sshin static oop vm_exception() { return _vm_exception; } 32455009Sshin static oop emptySymbol() { return _emptySymbol; } 32555009Sshin 32655009Sshin // OutOfMemoryError support. Returns an error with the required message. The returned error 32755009Sshin // may or may not have a backtrace. If error has a backtrace then the stack trace is already 32855009Sshin // filled in. 329 static oop out_of_memory_error_java_heap() { return gen_out_of_memory_error(_out_of_memory_error_java_heap); } 330 static oop out_of_memory_error_perm_gen() { return gen_out_of_memory_error(_out_of_memory_error_perm_gen); } 331 static oop out_of_memory_error_array_size() { return gen_out_of_memory_error(_out_of_memory_error_array_size); } 332 static oop out_of_memory_error_gc_overhead_limit() { return gen_out_of_memory_error(_out_of_memory_error_gc_overhead_limit); } 333 334 // Accessors needed for fast allocation 335 static klassOop* boolArrayKlassObj_addr() { return &_boolArrayKlassObj; } 336 static klassOop* byteArrayKlassObj_addr() { return &_byteArrayKlassObj; } 337 static klassOop* charArrayKlassObj_addr() { return &_charArrayKlassObj; } 338 static klassOop* intArrayKlassObj_addr() { return &_intArrayKlassObj; } 339 static klassOop* shortArrayKlassObj_addr() { return &_shortArrayKlassObj; } 340 static klassOop* longArrayKlassObj_addr() { return &_longArrayKlassObj; } 341 static klassOop* singleArrayKlassObj_addr() { return &_singleArrayKlassObj; } 342 static klassOop* doubleArrayKlassObj_addr() { return &_doubleArrayKlassObj; } 343 344 // The particular choice of collected heap. 345 static CollectedHeap* heap() { return _collectedHeap; } 346 347 // For UseCompressedOops 348 static address* narrow_oop_base_addr() { return &_narrow_oop._base; } 349 static address narrow_oop_base() { return _narrow_oop._base; } 350 static bool is_narrow_oop_base(void* addr) { return (narrow_oop_base() == (address)addr); } 351 static int narrow_oop_shift() { return _narrow_oop._shift; } 352 static void set_narrow_oop_base(address base) { _narrow_oop._base = base; } 353 static void set_narrow_oop_shift(int shift) { _narrow_oop._shift = shift; } 354 static bool narrow_oop_use_implicit_null_checks() { return _narrow_oop._use_implicit_null_checks; } 355 static void set_narrow_oop_use_implicit_null_checks(bool use) { _narrow_oop._use_implicit_null_checks = use; } 356 // Narrow Oop encoding mode: 357 // 0 - Use 32-bits oops without encoding when 358 // NarrowOopHeapBaseMin + heap_size < 4Gb 359 // 1 - Use zero based compressed oops with encoding when 360 // NarrowOopHeapBaseMin + heap_size < 32Gb 361 // 2 - Use compressed oops with heap base + encoding. 362 enum NARROW_OOP_MODE { 363 UnscaledNarrowOop = 0, 364 ZeroBasedNarrowOop = 1, 365 HeapBasedNarrowOop = 2 366 }; 367 static char* preferred_heap_base(size_t heap_size, NARROW_OOP_MODE mode); 368 369 // Historic gc information 370 static size_t get_heap_capacity_at_last_gc() { return _heap_capacity_at_last_gc; } 371 static size_t get_heap_free_at_last_gc() { return _heap_capacity_at_last_gc - _heap_used_at_last_gc; } 372 static size_t get_heap_used_at_last_gc() { return _heap_used_at_last_gc; } 373 static void update_heap_info_at_gc(); 374 375 // Testers 376 static bool is_bootstrapping() { return _bootstrapping; } 377 static bool is_fully_initialized() { return _fully_initialized; } 378 379 static inline bool element_type_should_be_aligned(BasicType type); 380 static inline bool field_type_should_be_aligned(BasicType type); 381 static bool on_page_boundary(void* addr); 382 static bool should_fill_in_stack_trace(Handle throwable); 383 static void check_alignment(uintx size, uintx alignment, const char* name); 384 385 // Finalizer support. 386 static void run_finalizers_on_exit(); 387 388 // Iteration 389 390 // Apply "f" to the addresses of all the direct heap pointers maintained 391 // as static fields of "Universe". 392 static void oops_do(OopClosure* f, bool do_all = false); 393 394 // Apply "f" to all klasses for basic types (classes not present in 395 // SystemDictionary). 396 static void basic_type_classes_do(void f(klassOop)); 397 398 // Apply "f" to all system klasses (classes not present in SystemDictionary). 399 static void system_classes_do(void f(klassOop)); 400 401 // For sharing -- fill in a list of known vtable pointers. 402 static void init_self_patching_vtbl_list(void** list, int count); 403 404 // Debugging 405 static bool verify_in_progress() { return _verify_in_progress; } 406 static void verify(bool allow_dirty = true, bool silent = false, bool option = true); 407 static int verify_count() { return _verify_count; } 408 static void print(); 409 static void print_on(outputStream* st); 410 static void print_heap_at_SIGBREAK(); 411 static void print_heap_before_gc() { print_heap_before_gc(gclog_or_tty); } 412 static void print_heap_after_gc() { print_heap_after_gc(gclog_or_tty); } 413 static void print_heap_before_gc(outputStream* st); 414 static void print_heap_after_gc(outputStream* st); 415 416 // Change the number of dummy objects kept reachable by the full gc dummy 417 // array; this should trigger relocation in a sliding compaction collector. 418 debug_only(static bool release_fullgc_alot_dummy();) 419 // The non-oop pattern (see compiledIC.hpp, etc) 420 static void* non_oop_word(); 421 422 // Oop verification (see MacroAssembler::verify_oop) 423 static uintptr_t verify_oop_mask() PRODUCT_RETURN0; 424 static uintptr_t verify_oop_bits() PRODUCT_RETURN0; 425 static uintptr_t verify_mark_bits() PRODUCT_RETURN0; 426 static uintptr_t verify_mark_mask() PRODUCT_RETURN0; 427 static uintptr_t verify_klass_mask() PRODUCT_RETURN0; 428 static uintptr_t verify_klass_bits() PRODUCT_RETURN0; 429 430 // Flushing and deoptimization 431 static void flush_dependents_on(instanceKlassHandle dependee); 432#ifdef HOTSWAP 433 // Flushing and deoptimization in case of evolution 434 static void flush_evol_dependents_on(instanceKlassHandle dependee); 435#endif // HOTSWAP 436 // Support for fullspeed debugging 437 static void flush_dependents_on_method(methodHandle dependee); 438 439 // Compiler support 440 static int base_vtable_size() { return _base_vtable_size; } 441}; 442 443class DeferredObjAllocEvent : public CHeapObj { 444 private: 445 oop _oop; 446 size_t _bytesize; 447 jint _arena_id; 448 449 public: 450 DeferredObjAllocEvent(const oop o, const size_t s, const jint id) { 451 _oop = o; 452 _bytesize = s; 453 _arena_id = id; 454 } 455 456 ~DeferredObjAllocEvent() { 457 } 458 459 jint arena_id() { return _arena_id; } 460 size_t bytesize() { return _bytesize; } 461 oop get_oop() { return _oop; } 462}; 463