mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
7114376: Make system dictionary hashtable bucket array size configurable
7u4 new experimental flag -XX:PredictedClassLoadedCount=# Reviewed-by: dholmes, phh, dcubed
This commit is contained in:
parent
d5546e27cf
commit
ce074f86c3
8 changed files with 46 additions and 36 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -183,7 +183,6 @@ protected:
|
|||
|
||||
// Accessor
|
||||
int entry_size() const { return _entry_size; }
|
||||
int table_size() { return _table_size; }
|
||||
|
||||
// The following method is MT-safe and may be used with caution.
|
||||
BasicHashtableEntry* bucket(int i);
|
||||
|
@ -195,6 +194,7 @@ protected:
|
|||
BasicHashtableEntry* new_entry(unsigned int hashValue);
|
||||
|
||||
public:
|
||||
int table_size() { return _table_size; }
|
||||
void set_entry(int index, BasicHashtableEntry* entry);
|
||||
|
||||
void add_entry(int index, BasicHashtableEntry* entry);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue