8140452: Internal Error memory/allocation.cpp:179

Use const ref & and avoid copy ctor

Reviewed-by: coleenp
This commit is contained in:
Mikael Gerdin 2015-10-26 17:13:40 -04:00
parent 66dd5c3e3f
commit d281188a5f
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ objArrayOop ConstantPool::resolved_references() const {
// 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.

View File

@ -185,7 +185,7 @@ class ConstantPool : public Metadata {
// 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);