changeset 46264:03e564780d23

8157271: Avoid extra copy of NativeCallStack Summary: Now pass reference to NativeCallStack instead of copy. Reviewed-by: zgu, sspitsyn
author mockner
date Mon, 13 Feb 2017 12:00:40 -0500
parents 83280d968b96
children 6a3bb9853fee
files hotspot/src/share/vm/services/mallocSiteTable.hpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 {