8157271: Avoid extra copy of NativeCallStack
Summary: Now pass reference to NativeCallStack instead of copy.
Reviewed-by: zgu, sspitsyn
--- a/hotspot/src/share/vm/services/mallocSiteTable.hpp Fri Feb 10 07:46:07 2017 -0500
+++ b/hotspot/src/share/vm/services/mallocSiteTable.hpp Mon Feb 13 12:00:40 2017 -0500
@@ -62,7 +62,7 @@
public:
MallocSiteHashtableEntry() : _next(NULL) { }
- MallocSiteHashtableEntry(NativeCallStack stack):
+ MallocSiteHashtableEntry(const NativeCallStack& stack):
_malloc_site(stack), _next(NULL) { }
inline const MallocSiteHashtableEntry* next() const {