< prev index next >

src/hotspot/share/prims/jvmtiEnvBase.hpp

Print this page




 238     return ((void**)&_event_callbacks)[event_type-JVMTI_MIN_EVENT_TYPE_VAL] != NULL;
 239   }
 240 
 241   jvmtiEventCallbacks* callbacks() {
 242     return &_event_callbacks;
 243   }
 244 
 245   jvmtiExtEventCallbacks* ext_callbacks() {
 246     return &_ext_event_callbacks;
 247   }
 248 
 249   void set_tag_map(JvmtiTagMap* tag_map) {
 250     _tag_map = tag_map;
 251   }
 252 
 253   JvmtiTagMap* tag_map() {
 254     return _tag_map;
 255   }
 256 
 257   JvmtiTagMap* tag_map_acquire() {
 258     return OrderAccess::load_acquire(&_tag_map);
 259   }
 260 
 261   void release_set_tag_map(JvmtiTagMap* tag_map) {
 262     OrderAccess::release_store(&_tag_map, tag_map);
 263   }
 264 
 265   // return true if event is enabled globally or for any thread
 266   // True only if there is a callback for it.
 267   bool is_enabled(jvmtiEvent event_type) {
 268     return _env_event_enable.is_enabled(event_type);
 269   }
 270 
 271 // Random Utilities
 272 
 273  protected:
 274   // helper methods for creating arrays of global JNI Handles from local Handles
 275   // allocated into environment specific storage
 276   jobject * new_jobjectArray(int length, Handle *handles);
 277   jthread * new_jthreadArray(int length, Handle *handles);
 278   jthreadGroup * new_jthreadGroupArray(int length, Handle *handles);
 279 
 280   // convert to a jni jclass from a non-null Klass*
 281   jclass get_jni_class_non_null(Klass* k);
 282 




 238     return ((void**)&_event_callbacks)[event_type-JVMTI_MIN_EVENT_TYPE_VAL] != NULL;
 239   }
 240 
 241   jvmtiEventCallbacks* callbacks() {
 242     return &_event_callbacks;
 243   }
 244 
 245   jvmtiExtEventCallbacks* ext_callbacks() {
 246     return &_ext_event_callbacks;
 247   }
 248 
 249   void set_tag_map(JvmtiTagMap* tag_map) {
 250     _tag_map = tag_map;
 251   }
 252 
 253   JvmtiTagMap* tag_map() {
 254     return _tag_map;
 255   }
 256 
 257   JvmtiTagMap* tag_map_acquire() {
 258     return Atomic::load_acquire(&_tag_map);
 259   }
 260 
 261   void release_set_tag_map(JvmtiTagMap* tag_map) {
 262     Atomic::release_store(&_tag_map, tag_map);
 263   }
 264 
 265   // return true if event is enabled globally or for any thread
 266   // True only if there is a callback for it.
 267   bool is_enabled(jvmtiEvent event_type) {
 268     return _env_event_enable.is_enabled(event_type);
 269   }
 270 
 271 // Random Utilities
 272 
 273  protected:
 274   // helper methods for creating arrays of global JNI Handles from local Handles
 275   // allocated into environment specific storage
 276   jobject * new_jobjectArray(int length, Handle *handles);
 277   jthread * new_jthreadArray(int length, Handle *handles);
 278   jthreadGroup * new_jthreadGroupArray(int length, Handle *handles);
 279 
 280   // convert to a jni jclass from a non-null Klass*
 281   jclass get_jni_class_non_null(Klass* k);
 282 


< prev index next >