hotspot/src/share/vm/runtime/vmThread.cpp
changeset 33148 68fa8b6c4340
parent 33105 294e48b4f704
child 33222 e0a340f4ab6e
equal deleted inserted replaced
33146:77349b58b4c0 33148:68fa8b6c4340
    39 #include "trace/tracing.hpp"
    39 #include "trace/tracing.hpp"
    40 #include "utilities/dtrace.hpp"
    40 #include "utilities/dtrace.hpp"
    41 #include "utilities/events.hpp"
    41 #include "utilities/events.hpp"
    42 #include "utilities/xmlstream.hpp"
    42 #include "utilities/xmlstream.hpp"
    43 
    43 
    44 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
       
    45 
       
    46 // Dummy VM operation to act as first element in our circular double-linked list
    44 // Dummy VM operation to act as first element in our circular double-linked list
    47 class VM_Dummy: public VM_Operation {
    45 class VM_Dummy: public VM_Operation {
    48   VMOp_Type type() const { return VMOp_Dummy; }
    46   VMOp_Type type() const { return VMOp_Dummy; }
    49   void  doit() {};
    47   void  doit() {};
    50 };
    48 };
   408       // Stall time tracking code
   406       // Stall time tracking code
   409       if (PrintVMQWaitTime && _cur_vm_operation != NULL &&
   407       if (PrintVMQWaitTime && _cur_vm_operation != NULL &&
   410           !_cur_vm_operation->evaluate_concurrently()) {
   408           !_cur_vm_operation->evaluate_concurrently()) {
   411         long stall = os::javaTimeMillis() - _cur_vm_operation->timestamp();
   409         long stall = os::javaTimeMillis() - _cur_vm_operation->timestamp();
   412         if (stall > 0)
   410         if (stall > 0)
   413           tty->print_cr("%s stall: %Ld",  _cur_vm_operation->name(), stall);
   411           tty->print_cr("%s stall: %ld",  _cur_vm_operation->name(), stall);
   414       }
   412       }
   415 
   413 
   416       while (!should_terminate() && _cur_vm_operation == NULL) {
   414       while (!should_terminate() && _cur_vm_operation == NULL) {
   417         // wait with a timeout to guarantee safepoints at regular intervals
   415         // wait with a timeout to guarantee safepoints at regular intervals
   418         bool timedout =
   416         bool timedout =