7186278: Build error after CR#6995781 / 7151532 with GCC 4.7.0
authorandrew
Tue, 31 Jul 2012 16:01:56 -0400
changeset 13342 76a5de64aa62
parent 13341 0e3b9df2c0a5
child 13343 044fda116fff
child 13469 9a2973794d8c
child 13471 d831cb656c1f
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
hotspot/src/share/vm/utilities/hashtable.cpp
hotspot/src/share/vm/utilities/hashtable.hpp
--- a/hotspot/src/share/vm/utilities/hashtable.cpp	Mon Jul 30 07:21:15 2012 -0700
+++ b/hotspot/src/share/vm/utilities/hashtable.cpp	Tue Jul 31 16:01:56 2012 -0400
@@ -135,7 +135,7 @@
       // 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();
--- a/hotspot/src/share/vm/utilities/hashtable.hpp	Mon Jul 30 07:21:15 2012 -0700
+++ b/hotspot/src/share/vm/utilities/hashtable.hpp	Tue Jul 31 16:01:56 2012 -0400
@@ -260,7 +260,7 @@
   }
 
   int index_for(Symbol* name) {
-    return hash_to_index(compute_hash(name));
+    return this->hash_to_index(compute_hash(name));
   }
 
   // Table entry management