< prev index next >
src/share/vm/services/allocationSite.hpp
Print this page
rev 9024 : 8218558: NMT stack traces in output should show mt component for virtual memory allocations
Reviewed-by: shade, stuefe, coleenp
@@ -32,12 +32,13 @@
// allocation
template <class E> class AllocationSite VALUE_OBJ_CLASS_SPEC {
private:
NativeCallStack _call_stack;
E e;
+ MEMFLAGS _flag;
public:
- AllocationSite(const NativeCallStack& stack) : _call_stack(stack) { }
+ AllocationSite(const NativeCallStack& stack, MEMFLAGS flag) : _call_stack(stack), _flag(flag) { }
int hash() const { return _call_stack.hash(); }
bool equals(const NativeCallStack& stack) const {
return _call_stack.equals(stack);
}
@@ -50,8 +51,10 @@
}
// Information regarding this allocation
E* data() { return &e; }
const E* peek() const { return &e; }
+
+ MEMFLAGS flag() const { return _flag; }
};
#endif // SHARE_VM_SERVICES_ALLOCATION_SITE_HPP
< prev index next >