hotspot/src/share/vm/runtime/vmThread.cpp
changeset 36384 b0b41336a9a8
parent 35061 be6025ebffea
child 37176 663bdc7d0b86
--- a/hotspot/src/share/vm/runtime/vmThread.cpp	Tue Mar 01 09:42:19 2016 +0100
+++ b/hotspot/src/share/vm/runtime/vmThread.cpp	Tue Mar 01 23:46:09 2016 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -359,7 +359,7 @@
       // Only write caller thread information for non-concurrent vm operations.
       // For concurrent vm operations, the thread id is set to 0 indicating thread is unknown.
       // This is because the caller thread could have exited already.
-      event.set_caller(is_concurrent ? 0 : op->calling_thread()->osthread()->thread_id());
+      event.set_caller(is_concurrent ? 0 : THREAD_TRACE_ID(op->calling_thread()));
       event.commit();
     }