8165681: ClassLoad and ClassPrepare JVMTI events are missed in the start phase
authorsspitsyn
Tue, 13 Sep 2016 13:10:42 -0700
changeset 41089 20dee76bef80
parent 41066 e8c366069761
child 41090 49070c1a537a
child 41287 203e59c224b0
8165681: ClassLoad and ClassPrepare JVMTI events are missed in the start phase Summary: Add the events bits to the early events bits Reviewed-by: dholmes, dsamersoff
hotspot/src/share/vm/prims/jvmtiEventController.cpp
--- a/hotspot/src/share/vm/prims/jvmtiEventController.cpp	Thu Sep 08 23:43:45 2016 -0400
+++ b/hotspot/src/share/vm/prims/jvmtiEventController.cpp	Tue Sep 13 13:10:42 2016 -0700
@@ -96,7 +96,7 @@
 static const jlong  THREAD_FILTERED_EVENT_BITS = INTERP_EVENT_BITS | EXCEPTION_BITS | MONITOR_BITS |
                                         BREAKPOINT_BIT | CLASS_LOAD_BIT | CLASS_PREPARE_BIT | THREAD_END_BIT;
 static const jlong  NEED_THREAD_LIFE_EVENTS = THREAD_FILTERED_EVENT_BITS | THREAD_START_BIT;
-static const jlong  EARLY_EVENT_BITS = CLASS_FILE_LOAD_HOOK_BIT |
+static const jlong  EARLY_EVENT_BITS = CLASS_FILE_LOAD_HOOK_BIT | CLASS_LOAD_BIT | CLASS_PREPARE_BIT |
                                VM_START_BIT | VM_INIT_BIT | VM_DEATH_BIT | NATIVE_METHOD_BIND_BIT |
                                THREAD_START_BIT | THREAD_END_BIT |
                                COMPILED_METHOD_LOAD_BIT | COMPILED_METHOD_UNLOAD_BIT |