< prev index next >

src/share/vm/runtime/sharedRuntime.cpp

Print this page


3091     if (b == CodeCache::find_blob(a->get_i2c_entry())) {
3092       st->print("Adapter for signature: ");
3093       a->print_adapter_on(tty);
3094       return;
3095     }
3096   }
3097   assert(false, "Should have found handler");
3098 }
3099 
3100 void AdapterHandlerEntry::print_adapter_on(outputStream* st) const {
3101   st->print_cr("AHE@" INTPTR_FORMAT ": %s i2c: " INTPTR_FORMAT " c2i: " INTPTR_FORMAT " c2iUV: " INTPTR_FORMAT,
3102                p2i(this), fingerprint()->as_string(),
3103                p2i(get_i2c_entry()), p2i(get_c2i_entry()), p2i(get_c2i_unverified_entry()));
3104 
3105 }
3106 
3107 #if INCLUDE_CDS
3108 
3109 void CDSAdapterHandlerEntry::init() {
3110   assert(DumpSharedSpaces, "used during dump time only");
3111   _c2i_entry_trampoline = (address)MetaspaceShared::misc_data_space_alloc(SharedRuntime::trampoline_size());
3112   _adapter_trampoline = (AdapterHandlerEntry**)MetaspaceShared::misc_data_space_alloc(sizeof(AdapterHandlerEntry*));
3113 };
3114 
3115 #endif // INCLUDE_CDS
3116 
3117 
3118 #ifndef PRODUCT
3119 
3120 void AdapterHandlerLibrary::print_statistics() {
3121   _adapters->print_statistics();
3122 }
3123 
3124 #endif /* PRODUCT */
3125 
3126 JRT_LEAF(void, SharedRuntime::enable_stack_reserved_zone(JavaThread* thread))
3127   assert(thread->is_Java_thread(), "Only Java threads have a stack reserved zone");
3128   thread->enable_stack_reserved_zone();
3129   thread->set_reserved_stack_activation(thread->stack_base());
3130 JRT_END
3131 
3132 frame SharedRuntime::look_for_reserved_stack_annotated_method(JavaThread* thread, frame fr) {




3091     if (b == CodeCache::find_blob(a->get_i2c_entry())) {
3092       st->print("Adapter for signature: ");
3093       a->print_adapter_on(tty);
3094       return;
3095     }
3096   }
3097   assert(false, "Should have found handler");
3098 }
3099 
3100 void AdapterHandlerEntry::print_adapter_on(outputStream* st) const {
3101   st->print_cr("AHE@" INTPTR_FORMAT ": %s i2c: " INTPTR_FORMAT " c2i: " INTPTR_FORMAT " c2iUV: " INTPTR_FORMAT,
3102                p2i(this), fingerprint()->as_string(),
3103                p2i(get_i2c_entry()), p2i(get_c2i_entry()), p2i(get_c2i_unverified_entry()));
3104 
3105 }
3106 
3107 #if INCLUDE_CDS
3108 
3109 void CDSAdapterHandlerEntry::init() {
3110   assert(DumpSharedSpaces, "used during dump time only");
3111   _c2i_entry_trampoline = (address)MetaspaceShared::misc_code_space_alloc(SharedRuntime::trampoline_size());
3112   _adapter_trampoline = (AdapterHandlerEntry**)MetaspaceShared::misc_code_space_alloc(sizeof(AdapterHandlerEntry*));
3113 };
3114 
3115 #endif // INCLUDE_CDS
3116 
3117 
3118 #ifndef PRODUCT
3119 
3120 void AdapterHandlerLibrary::print_statistics() {
3121   _adapters->print_statistics();
3122 }
3123 
3124 #endif /* PRODUCT */
3125 
3126 JRT_LEAF(void, SharedRuntime::enable_stack_reserved_zone(JavaThread* thread))
3127   assert(thread->is_Java_thread(), "Only Java threads have a stack reserved zone");
3128   thread->enable_stack_reserved_zone();
3129   thread->set_reserved_stack_activation(thread->stack_base());
3130 JRT_END
3131 
3132 frame SharedRuntime::look_for_reserved_stack_annotated_method(JavaThread* thread, frame fr) {


< prev index next >