8140452: Internal Error memory/allocation.cpp:179
authormgerdin
Mon, 26 Oct 2015 17:13:40 -0400
changeset 33232 75e0112d3eb5
parent 33231 a6d6dd711998
child 33233 6b61c54e47d7
8140452: Internal Error memory/allocation.cpp:179 Summary: use const ref & and avoid copy ctor Reviewed-by: coleenp
hotspot/src/share/vm/oops/constantPool.cpp
hotspot/src/share/vm/oops/constantPool.hpp
--- a/hotspot/src/share/vm/oops/constantPool.cpp	Thu Oct 22 16:25:34 2015 -0700
+++ b/hotspot/src/share/vm/oops/constantPool.cpp	Mon Oct 26 17:13:40 2015 -0400
@@ -111,7 +111,7 @@
 // to map it back for resolving and some unlikely miscellaneous uses.
 // The objects created by invokedynamic are appended to this list.
 void ConstantPool::initialize_resolved_references(ClassLoaderData* loader_data,
-                                                  intStack reference_map,
+                                                  const intStack& reference_map,
                                                   int constant_pool_map_length,
                                                   TRAPS) {
   // Initialized the resolved object cache.
--- a/hotspot/src/share/vm/oops/constantPool.hpp	Thu Oct 22 16:25:34 2015 -0700
+++ b/hotspot/src/share/vm/oops/constantPool.hpp	Mon Oct 26 17:13:40 2015 -0400
@@ -185,7 +185,7 @@
 
   // Create object cache in the constant pool
   void initialize_resolved_references(ClassLoaderData* loader_data,
-                                      intStack reference_map,
+                                      const intStack& reference_map,
                                       int constant_pool_map_length,
                                       TRAPS);