From 3ab3554186403eb30fdc499cd22881da91cc5e4d Mon Sep 17 00:00:00 2001 From: andrew Date: Tue, 31 Jul 2012 16:01:56 -0400 Subject: [PATCH] 7186278: Build error after CR#6995781 / 7151532 with GCC 4.7.0 Summary: Templates need this object if not using template parameter in call Reviewed-by: coleenp, kamg, dholmes --- src/share/vm/utilities/hashtable.cpp | 2 +- src/share/vm/utilities/hashtable.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/share/vm/utilities/hashtable.cpp b/src/share/vm/utilities/hashtable.cpp index 39092d95f..68b433ca9 100644 --- a/src/share/vm/utilities/hashtable.cpp +++ b/src/share/vm/utilities/hashtable.cpp @@ -135,7 +135,7 @@ template void Hashtable::move_to(Hashtable* ne // walking the hashtable past these entries requires // BasicHashtableEntry::make_ptr() call. bool keep_shared = p->is_shared(); - unlink_entry(p); + this->unlink_entry(p); new_table->add_entry(index, p); if (keep_shared) { p->set_shared(); diff --git a/src/share/vm/utilities/hashtable.hpp b/src/share/vm/utilities/hashtable.hpp index de7d319c0..24347c2e4 100644 --- a/src/share/vm/utilities/hashtable.hpp +++ b/src/share/vm/utilities/hashtable.hpp @@ -260,7 +260,7 @@ protected: } int index_for(Symbol* name) { - return hash_to_index(compute_hash(name)); + return this->hash_to_index(compute_hash(name)); } // Table entry management -- GitLab