--- a/hotspot/src/share/vm/services/memRecorder.hpp Thu Oct 18 13:09:47 2012 -0400
+++ b/hotspot/src/share/vm/services/memRecorder.hpp Fri Oct 19 21:40:07 2012 -0400
@@ -188,6 +188,7 @@
// Test if the two records are the same kind: the same memory block and allocation
// type.
inline bool same_kind(const MemPointerRecord* p1, const MemPointerRecord* p2) const {
+ assert(!p1->is_vm_pointer() && !p2->is_vm_pointer(), "malloc pointer only");
return (p1->addr() == p2->addr() &&
(p1->flags() &MemPointerRecord::tag_masks) ==
(p2->flags() & MemPointerRecord::tag_masks));