mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +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
|
@ -73,6 +73,7 @@
|
|||
#include "runtime/vm_operations.hpp"
|
||||
#include "services/memTracker.hpp"
|
||||
#include "services/runtimeService.hpp"
|
||||
#include "trace/traceMacros.hpp"
|
||||
#include "trace/tracing.hpp"
|
||||
#include "utilities/defaultStream.hpp"
|
||||
#include "utilities/dtrace.hpp"
|
||||
|
@ -3929,7 +3930,7 @@ static jint JNI_CreateJavaVM_inner(JavaVM **vm, void **penv, void *args) {
|
|||
|
||||
EventThreadStart event;
|
||||
if (event.should_commit()) {
|
||||
event.set_javalangthread(java_lang_Thread::thread_id(thread->threadObj()));
|
||||
event.set_thread(THREAD_TRACE_ID(thread));
|
||||
event.commit();
|
||||
}
|
||||
|
||||
|
@ -4149,7 +4150,7 @@ static jint attach_current_thread(JavaVM *vm, void **penv, void *_args, bool dae
|
|||
|
||||
EventThreadStart event;
|
||||
if (event.should_commit()) {
|
||||
event.set_javalangthread(java_lang_Thread::thread_id(thread->threadObj()));
|
||||
event.set_thread(THREAD_TRACE_ID(thread));
|
||||
event.commit();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue