src/share/vm/compiler/disassembler.hpp

Print this page
rev 4202 : 8008555: Debugging code in compiled method sometimes leaks memory
Summary: support for strings that have same life-time as code that uses them.
Reviewed-by:


  83 #endif
  84 #ifdef TARGET_ARCH_zero
  85 # include "disassembler_zero.hpp"
  86 #endif
  87 #ifdef TARGET_ARCH_arm
  88 # include "disassembler_arm.hpp"
  89 #endif
  90 #ifdef TARGET_ARCH_ppc
  91 # include "disassembler_ppc.hpp"
  92 #endif
  93 
  94 
  95  public:
  96   static bool can_decode() {
  97     return (_decode_instructions_virtual != NULL) ||
  98            (_decode_instructions != NULL) ||
  99            load_library();
 100   }
 101   static void decode(CodeBlob *cb,               outputStream* st = NULL);
 102   static void decode(nmethod* nm,                outputStream* st = NULL);
 103   static void decode(address begin, address end, outputStream* st = NULL, CodeComments c = CodeComments());
 104 };
 105 
 106 #endif // SHARE_VM_COMPILER_DISASSEMBLER_HPP


  83 #endif
  84 #ifdef TARGET_ARCH_zero
  85 # include "disassembler_zero.hpp"
  86 #endif
  87 #ifdef TARGET_ARCH_arm
  88 # include "disassembler_arm.hpp"
  89 #endif
  90 #ifdef TARGET_ARCH_ppc
  91 # include "disassembler_ppc.hpp"
  92 #endif
  93 
  94 
  95  public:
  96   static bool can_decode() {
  97     return (_decode_instructions_virtual != NULL) ||
  98            (_decode_instructions != NULL) ||
  99            load_library();
 100   }
 101   static void decode(CodeBlob *cb,               outputStream* st = NULL);
 102   static void decode(nmethod* nm,                outputStream* st = NULL);
 103   static void decode(address begin, address end, outputStream* st = NULL, CodeStrings c = CodeStrings());
 104 };
 105 
 106 #endif // SHARE_VM_COMPILER_DISASSEMBLER_HPP