< prev index next >

src/share/vm/runtime/vm_operations.cpp

Print this page




  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/symbolTable.hpp"
  27 #include "classfile/vmSymbols.hpp"
  28 #include "compiler/compileBroker.hpp"
  29 #include "compiler/compilerOracle.hpp"
  30 #include "gc_implementation/shared/isGCActiveMark.hpp"
  31 #include "memory/resourceArea.hpp"
  32 #include "oops/symbol.hpp"
  33 #include "runtime/arguments.hpp"
  34 #include "runtime/deoptimization.hpp"
  35 #include "runtime/interfaceSupport.hpp"
  36 #include "runtime/sweeper.hpp"
  37 #include "runtime/thread.inline.hpp"
  38 #include "runtime/vm_operations.hpp"
  39 #include "services/threadService.hpp"
  40 #include "trace/tracing.hpp"
  41 
  42 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  43 
  44 #define VM_OP_NAME_INITIALIZE(name) #name,
  45 
  46 const char* VM_Operation::_names[VM_Operation::VMOp_Terminating] = \
  47   { VM_OPS_DO(VM_OP_NAME_INITIALIZE) };
  48 
  49 void VM_Operation::set_calling_thread(Thread* thread, ThreadPriority priority) {
  50   _calling_thread = thread;
  51   assert(MinPriority <= priority && priority <= MaxPriority, "sanity check");
  52   _priority = priority;
  53 }
  54 
  55 
  56 void VM_Operation::evaluate() {
  57   ResourceMark rm;
  58   if (TraceVMOperation) {
  59     tty->print("[");
  60     NOT_PRODUCT(print();)




  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/symbolTable.hpp"
  27 #include "classfile/vmSymbols.hpp"
  28 #include "compiler/compileBroker.hpp"
  29 #include "compiler/compilerOracle.hpp"
  30 #include "gc_implementation/shared/isGCActiveMark.hpp"
  31 #include "memory/resourceArea.hpp"
  32 #include "oops/symbol.hpp"
  33 #include "runtime/arguments.hpp"
  34 #include "runtime/deoptimization.hpp"
  35 #include "runtime/interfaceSupport.hpp"
  36 #include "runtime/sweeper.hpp"
  37 #include "runtime/thread.inline.hpp"
  38 #include "runtime/vm_operations.hpp"
  39 #include "services/threadService.hpp"

  40 
  41 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  42 
  43 #define VM_OP_NAME_INITIALIZE(name) #name,
  44 
  45 const char* VM_Operation::_names[VM_Operation::VMOp_Terminating] = \
  46   { VM_OPS_DO(VM_OP_NAME_INITIALIZE) };
  47 
  48 void VM_Operation::set_calling_thread(Thread* thread, ThreadPriority priority) {
  49   _calling_thread = thread;
  50   assert(MinPriority <= priority && priority <= MaxPriority, "sanity check");
  51   _priority = priority;
  52 }
  53 
  54 
  55 void VM_Operation::evaluate() {
  56   ResourceMark rm;
  57   if (TraceVMOperation) {
  58     tty->print("[");
  59     NOT_PRODUCT(print();)


< prev index next >