mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8143226: Minor updates to Event Based tracing
Reviewed-by: jbachorik, egahlin
This commit is contained in:
parent
12d9b13eee
commit
0e44e963d2
34 changed files with 211 additions and 321 deletions
|
@ -1694,7 +1694,7 @@ void JavaThread::run() {
|
|||
|
||||
EventThreadStart event;
|
||||
if (event.should_commit()) {
|
||||
event.set_javalangthread(java_lang_Thread::thread_id(this->threadObj()));
|
||||
event.set_thread(THREAD_TRACE_ID(this));
|
||||
event.commit();
|
||||
}
|
||||
|
||||
|
@ -1799,7 +1799,7 @@ void JavaThread::exit(bool destroy_vm, ExitType exit_type) {
|
|||
// from java_lang_Thread object
|
||||
EventThreadEnd event;
|
||||
if (event.should_commit()) {
|
||||
event.set_javalangthread(java_lang_Thread::thread_id(this->threadObj()));
|
||||
event.set_thread(THREAD_TRACE_ID(this));
|
||||
event.commit();
|
||||
}
|
||||
|
||||
|
@ -3554,6 +3554,10 @@ jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) {
|
|||
return status;
|
||||
}
|
||||
|
||||
if (TRACE_INITIALIZE() != JNI_OK) {
|
||||
vm_exit_during_initialization("Failed to initialize tracing backend");
|
||||
}
|
||||
|
||||
// Should be done after the heap is fully created
|
||||
main_thread->cache_global_variables();
|
||||
|
||||
|
@ -3622,11 +3626,6 @@ jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) {
|
|||
|
||||
quicken_jni_functions();
|
||||
|
||||
// Must be run after init_ft which initializes ft_enabled
|
||||
if (TRACE_INITIALIZE() != JNI_OK) {
|
||||
vm_exit_during_initialization("Failed to initialize tracing backend");
|
||||
}
|
||||
|
||||
// No more stub generation allowed after that point.
|
||||
StubCodeDesc::freeze();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue