< prev index next >

src/hotspot/share/runtime/sharedRuntime.cpp

BarrierSetC1

3061                p2i(get_i2c_entry()), p2i(get_c2i_entry()), p2i(get_c2i_unverified_entry()));                                         
3062 
3063 }                                                                                                                                    
3064 
3065 #if INCLUDE_CDS                                                                                                                      
3066 
3067 void CDSAdapterHandlerEntry::init() {                                                                                                
3068   assert(DumpSharedSpaces, "used during dump time only");                                                                            
3069   _c2i_entry_trampoline = (address)MetaspaceShared::misc_code_space_alloc(SharedRuntime::trampoline_size());                         
3070   _adapter_trampoline = (AdapterHandlerEntry**)MetaspaceShared::misc_code_space_alloc(sizeof(AdapterHandlerEntry*));                 
3071 };                                                                                                                                   
3072 
3073 #endif // INCLUDE_CDS                                                                                                                
3074 
3075 
3076 #ifndef PRODUCT                                                                                                                      
3077 
3078 void AdapterHandlerLibrary::print_statistics() {                                                                                     
3079   _adapters->print_statistics();                                                                                                     
3080 }                                                                                                                                    
3081                                                                                                                                      
3082 #endif /* PRODUCT */                                                                                                                 
3083 
3084 JRT_LEAF(void, SharedRuntime::enable_stack_reserved_zone(JavaThread* thread))                                                        
3085   assert(thread->is_Java_thread(), "Only Java threads have a stack reserved zone");                                                  
3086   if (thread->stack_reserved_zone_disabled()) {                                                                                      
3087   thread->enable_stack_reserved_zone();                                                                                              
3088   }                                                                                                                                  
3089   thread->set_reserved_stack_activation(thread->stack_base());                                                                       
3090 JRT_END                                                                                                                              
3091 
3092 frame SharedRuntime::look_for_reserved_stack_annotated_method(JavaThread* thread, frame fr) {                                        
3093   ResourceMark rm(thread);                                                                                                           
3094   frame activation;                                                                                                                  
3095   CompiledMethod* nm = NULL;                                                                                                         
3096   int count = 1;                                                                                                                     
3097 
3098   assert(fr.is_java_frame(), "Must start on Java frame");                                                                            
3099 
3100   while (true) {                                                                                                                     

3061                p2i(get_i2c_entry()), p2i(get_c2i_entry()), p2i(get_c2i_unverified_entry()));
3062 
3063 }
3064 
3065 #if INCLUDE_CDS
3066 
3067 void CDSAdapterHandlerEntry::init() {
3068   assert(DumpSharedSpaces, "used during dump time only");
3069   _c2i_entry_trampoline = (address)MetaspaceShared::misc_code_space_alloc(SharedRuntime::trampoline_size());
3070   _adapter_trampoline = (AdapterHandlerEntry**)MetaspaceShared::misc_code_space_alloc(sizeof(AdapterHandlerEntry*));
3071 };
3072 
3073 #endif // INCLUDE_CDS
3074 
3075 
3076 #ifndef PRODUCT
3077 
3078 void AdapterHandlerLibrary::print_statistics() {
3079   _adapters->print_statistics();
3080 }

3081 #endif /* PRODUCT */
3082 
3083 JRT_LEAF(void, SharedRuntime::enable_stack_reserved_zone(JavaThread* thread))
3084   assert(thread->is_Java_thread(), "Only Java threads have a stack reserved zone");
3085   if (thread->stack_reserved_zone_disabled()) {
3086   thread->enable_stack_reserved_zone();
3087   }
3088   thread->set_reserved_stack_activation(thread->stack_base());
3089 JRT_END
3090 
3091 frame SharedRuntime::look_for_reserved_stack_annotated_method(JavaThread* thread, frame fr) {
3092   ResourceMark rm(thread);
3093   frame activation;
3094   CompiledMethod* nm = NULL;
3095   int count = 1;
3096 
3097   assert(fr.is_java_frame(), "Must start on Java frame");
3098 
3099   while (true) {
< prev index next >