# HG changeset patch # User mockner # Date 1487005240 18000 # Node ID 03e564780d23bc3e5a9edef2420bb5bfb03c0523 # Parent 83280d968b96a29131a33183557f0066ec04765b 8157271: Avoid extra copy of NativeCallStack Summary: Now pass reference to NativeCallStack instead of copy. Reviewed-by: zgu, sspitsyn diff -r 83280d968b96 -r 03e564780d23 hotspot/src/share/vm/services/mallocSiteTable.hpp --- 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 {