< prev index next >

src/hotspot/share/interpreter/bytecodeTracer.cpp

Print this page
@@ -168,10 +168,11 @@
    return &::std_closure;
  }
  
  
  void BytecodeTracer::trace(const methodHandle& method, address bcp, uintptr_t tos, uintptr_t tos2, outputStream* st) {
+   if (_closure == NULL) return;
    if (TraceBytecodes && BytecodeCounter::counter_value() >= TraceBytecodesAt) {
      ttyLocker ttyl;  // 5065316: keep the following output coherent
      // The ttyLocker also prevents races between two threads
      // trying to use the single instance of BytecodePrinter.
      // Using the ttyLocker prevents the system from coming to

@@ -187,10 +188,11 @@
      _closure->trace(method, bcp, tos, tos2, st);
    }
  }
  
  void BytecodeTracer::trace(const methodHandle& method, address bcp, outputStream* st) {
+   if (_closure == NULL) return;
    ttyLocker ttyl;  // 5065316: keep the following output coherent
    _closure->trace(method, bcp, st);
  }
  
  void print_symbol(Symbol* sym, outputStream* st) {
< prev index next >