< prev index next >

src/hotspot/share/utilities/hashtable.cpp

Print this page




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/altHashing.hpp"
  27 #include "classfile/dictionary.hpp"
  28 #include "classfile/javaClasses.inline.hpp"
  29 #include "classfile/moduleEntry.hpp"
  30 #include "classfile/packageEntry.hpp"
  31 #include "classfile/placeholders.hpp"
  32 #include "classfile/protectionDomainCache.hpp"
  33 #include "classfile/stringTable.hpp"

  34 #include "memory/allocation.inline.hpp"
  35 #include "memory/metaspaceShared.hpp"
  36 #include "memory/resourceArea.hpp"
  37 #include "oops/oop.inline.hpp"
  38 #include "oops/weakHandle.inline.hpp"
  39 #include "runtime/safepoint.hpp"
  40 #include "utilities/dtrace.hpp"
  41 #include "utilities/hashtable.hpp"
  42 #include "utilities/hashtable.inline.hpp"
  43 #include "utilities/numberSeq.hpp"
  44 
  45 
  46 // This hashtable is implemented as an open hash table with a fixed number of buckets.
  47 
  48 template <MEMFLAGS F> BasicHashtableEntry<F>* BasicHashtable<F>::new_entry_free_list() {
  49   BasicHashtableEntry<F>* entry = NULL;
  50   if (_free_list != NULL) {
  51     entry = _free_list;
  52     _free_list = _free_list->next();
  53   }




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/altHashing.hpp"
  27 #include "classfile/dictionary.hpp"
  28 #include "classfile/javaClasses.inline.hpp"
  29 #include "classfile/moduleEntry.hpp"
  30 #include "classfile/packageEntry.hpp"
  31 #include "classfile/placeholders.hpp"
  32 #include "classfile/protectionDomainCache.hpp"
  33 #include "classfile/stringTable.hpp"
  34 #include "logging/log.hpp"
  35 #include "memory/allocation.inline.hpp"
  36 #include "memory/metaspaceShared.hpp"
  37 #include "memory/resourceArea.hpp"
  38 #include "oops/oop.inline.hpp"
  39 #include "oops/weakHandle.inline.hpp"
  40 #include "runtime/safepoint.hpp"
  41 #include "utilities/dtrace.hpp"
  42 #include "utilities/hashtable.hpp"
  43 #include "utilities/hashtable.inline.hpp"
  44 #include "utilities/numberSeq.hpp"
  45 
  46 
  47 // This hashtable is implemented as an open hash table with a fixed number of buckets.
  48 
  49 template <MEMFLAGS F> BasicHashtableEntry<F>* BasicHashtable<F>::new_entry_free_list() {
  50   BasicHashtableEntry<F>* entry = NULL;
  51   if (_free_list != NULL) {
  52     entry = _free_list;
  53     _free_list = _free_list->next();
  54   }


< prev index next >