equal
deleted
inserted
replaced
176 const bool NMT_track_callsite = false; |
176 const bool NMT_track_callsite = false; |
177 |
177 |
178 #endif // INCLUDE_NMT |
178 #endif // INCLUDE_NMT |
179 |
179 |
180 // debug build does not inline |
180 // debug build does not inline |
181 #if defined(_DEBUG_) |
181 #if defined(_NMT_NOINLINE_) |
182 #define CURRENT_PC (NMT_track_callsite ? os::get_caller_pc(1) : 0) |
182 #define CURRENT_PC (NMT_track_callsite ? os::get_caller_pc(1) : 0) |
183 #define CALLER_PC (NMT_track_callsite ? os::get_caller_pc(2) : 0) |
183 #define CALLER_PC (NMT_track_callsite ? os::get_caller_pc(2) : 0) |
184 #define CALLER_CALLER_PC (NMT_track_callsite ? os::get_caller_pc(3) : 0) |
184 #define CALLER_CALLER_PC (NMT_track_callsite ? os::get_caller_pc(3) : 0) |
185 #else |
185 #else |
186 #define CURRENT_PC (NMT_track_callsite? os::get_caller_pc(0) : 0) |
186 #define CURRENT_PC (NMT_track_callsite? os::get_caller_pc(0) : 0) |