8157271: Avoid extra copy of NativeCallStack
authormockner
Mon, 13 Feb 2017 12:00:40 -0500
changeset 46264 03e564780d23
parent 46262 83280d968b96
child 46265 6a3bb9853fee
8157271: Avoid extra copy of NativeCallStack Summary: Now pass reference to NativeCallStack instead of copy. Reviewed-by: zgu, sspitsyn
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 {