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
--- 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 |