< prev index next >

hotspot/src/share/vm/services/mallocTracker.inline.hpp

Print this page
rev 6886 : 8058251: assert(_count > 0) failed: Negative counter when running runtime/NMT/MallocTrackingVerify.java
Summary: Fixed an issue when overflowing the MallocSite hash table bucket
Reviewed-by: coleenp, gtriantafill


  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_SERVICES_MALLOC_TRACKER_INLINE_HPP
  26 #define SHARE_VM_SERVICES_MALLOC_TRACKER_INLINE_HPP
  27 
  28 #include "services/mallocTracker.hpp"
  29 #include "services/memTracker.hpp"
  30 
  31 inline NMT_TrackingLevel MallocTracker::get_memory_tracking_level(void* memblock) {
  32   assert(memblock != NULL, "Sanity check");
  33   if (MemTracker::tracking_level() == NMT_off) return NMT_off;
  34   MallocHeader* header = malloc_header(memblock);
  35   return header->tracking_level();
  36 }
  37 
  38 inline void* MallocTracker::get_base(void* memblock){
  39   return get_base(memblock, MemTracker::tracking_level());
  40 }
  41 
  42 #endif // SHARE_VM_SERVICES_MALLOC_TRACKER_INLINE_HPP
  43 


  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_SERVICES_MALLOC_TRACKER_INLINE_HPP
  26 #define SHARE_VM_SERVICES_MALLOC_TRACKER_INLINE_HPP
  27 
  28 #include "services/mallocTracker.hpp"
  29 #include "services/memTracker.hpp"
  30 







  31 inline void* MallocTracker::get_base(void* memblock){
  32   return get_base(memblock, MemTracker::tracking_level());
  33 }
  34 
  35 #endif // SHARE_VM_SERVICES_MALLOC_TRACKER_INLINE_HPP
  36 
< prev index next >