Mercurial > hg > truffle
comparison src/share/vm/oops/method.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 | 41938af2b3d8 |
children | 291ffc492eb6 |
comparison
equal
deleted
inserted
replaced
6998:49f0841607b7 | 6999:679e6584c177 |
---|---|
1011 assert(idx < _length, "out of bounds"); | 1011 assert(idx < _length, "out of bounds"); |
1012 _table[idx].catch_type_index = value; | 1012 _table[idx].catch_type_index = value; |
1013 } | 1013 } |
1014 }; | 1014 }; |
1015 | 1015 |
1016 #ifdef GRAAL | |
1017 class DebugScopedMethod : public DebugScopedValue { | |
1018 private: | |
1019 Method* _method; | |
1020 public: | |
1021 DebugScopedMethod(const char* file, int line, Method* method) : DebugScopedValue(file, line), _method(method) {} | |
1022 void print_on(outputStream* st); | |
1023 }; | |
1024 #define DS_METHOD(method) DebugScopedMethod __dsm__(__FILE__, __LINE__, method) | |
1025 #define DS_METHOD1(var, method) DebugScopedMethod var(__FILE__, __LINE__, method) | |
1026 #else | |
1027 #define DS_METHOD(method) do {} while (0) | |
1028 #define DS_METHOD1(var, method) do {} while (0) | |
1029 #endif | |
1030 | |
1016 #endif // SHARE_VM_OOPS_METHODOOP_HPP | 1031 #endif // SHARE_VM_OOPS_METHODOOP_HPP |
1032 |