Mercurial > hg > graal-jvmci-8
comparison src/share/vm/code/nmethod.hpp @ 6999:679e6584c177
added ScopedDebugValue to add values of interest to hs_err crash logs
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 21 Nov 2012 19:23:43 +0100 |
parents | e522a00b91aa |
children | bf2ea3ed3bce |
comparison
equal
deleted
inserted
replaced
6998:49f0841607b7 | 6999:679e6584c177 |
---|---|
760 _nm = new_nm; | 760 _nm = new_nm; |
761 lock_nmethod(_nm); | 761 lock_nmethod(_nm); |
762 } | 762 } |
763 }; | 763 }; |
764 | 764 |
765 #ifdef GRAAL | |
766 class DebugScopedNMethod : public DebugScopedValue { | |
767 private: | |
768 nmethod* _nm; | |
769 public: | |
770 DebugScopedNMethod(const char* file, int line, nmethod* nm) : DebugScopedValue(file, line), _nm(nm) {} | |
771 void print_on(outputStream* st); | |
772 }; | |
773 #define DS_NMETHOD(nm) DebugScopedNMethod __dsnm__(__FILE__, __LINE__, nm) | |
774 #define DS_NMETHOD1(name, nm) DebugScopedNMethod name(__FILE__, __LINE__, nm) | |
775 #else | |
776 #define DS_NMETHOD(nm) do {} while (0) | |
777 #define DS_NMETHOD1(name, nm) do {} while (0) | |
778 #endif | |
779 | |
765 #endif // SHARE_VM_CODE_NMETHOD_HPP | 780 #endif // SHARE_VM_CODE_NMETHOD_HPP |