src/share/vm/memory/allocation.hpp

changeset 4942
f36e073d56a4
parent 4901
83f27710f5f7
child 4964
5b6512efcdc4
equal deleted inserted replaced
4940:b8b081e53312 4942:f36e073d56a4
1 /* 1 /*
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
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)

mercurial