src/share/vm/runtime/java.cpp

changeset 3427
94ec88ca68e2
parent 3202
436b4a3231bf
child 3884
f8de958e5b2c
child 3900
d2a62e0f25eb
     1.1 --- a/src/share/vm/runtime/java.cpp	Mon Jan 09 10:27:24 2012 +0100
     1.2 +++ b/src/share/vm/runtime/java.cpp	Wed Jan 11 17:34:02 2012 -0500
     1.3 @@ -57,6 +57,8 @@
     1.4  #include "runtime/task.hpp"
     1.5  #include "runtime/timer.hpp"
     1.6  #include "runtime/vm_operations.hpp"
     1.7 +#include "trace/tracing.hpp"
     1.8 +#include "trace/traceEventTypes.hpp"
     1.9  #include "utilities/dtrace.hpp"
    1.10  #include "utilities/globalDefinitions.hpp"
    1.11  #include "utilities/histogram.hpp"
    1.12 @@ -502,6 +504,11 @@
    1.13    if (JvmtiExport::should_post_thread_life()) {
    1.14      JvmtiExport::post_thread_end(thread);
    1.15    }
    1.16 +
    1.17 +  EVENT_BEGIN(TraceEventThreadEnd, event);
    1.18 +  EVENT_COMMIT(event,
    1.19 +      EVENT_SET(event, javalangthread, java_lang_Thread::thread_id(thread->threadObj())));
    1.20 +
    1.21    // Always call even when there are not JVMTI environments yet, since environments
    1.22    // may be attached late and JVMTI must track phases of VM execution
    1.23    JvmtiExport::post_vm_death();

mercurial