hotspot/src/share/vm/runtime/vmThread.cpp
changeset 36384 b0b41336a9a8
parent 35061 be6025ebffea
child 37176 663bdc7d0b86
equal deleted inserted replaced
36383:f41dad80f4e3 36384:b0b41336a9a8
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   357       event.set_safepoint(op->evaluate_at_safepoint());
   357       event.set_safepoint(op->evaluate_at_safepoint());
   358       event.set_blocking(!is_concurrent);
   358       event.set_blocking(!is_concurrent);
   359       // Only write caller thread information for non-concurrent vm operations.
   359       // Only write caller thread information for non-concurrent vm operations.
   360       // For concurrent vm operations, the thread id is set to 0 indicating thread is unknown.
   360       // For concurrent vm operations, the thread id is set to 0 indicating thread is unknown.
   361       // This is because the caller thread could have exited already.
   361       // This is because the caller thread could have exited already.
   362       event.set_caller(is_concurrent ? 0 : op->calling_thread()->osthread()->thread_id());
   362       event.set_caller(is_concurrent ? 0 : THREAD_TRACE_ID(op->calling_thread()));
   363       event.commit();
   363       event.commit();
   364     }
   364     }
   365 
   365 
   366     HOTSPOT_VMOPS_END(
   366     HOTSPOT_VMOPS_END(
   367                      (char *) op->name(), strlen(op->name()),
   367                      (char *) op->name(), strlen(op->name()),