8208061: runtime/LoadClass/TestResize.java fails with "Load factor too high" when running in CDS mode

Allow resizing for all system dictionaries except for the shared dictionary at runtime.

Reviewed-by: iklam, gziemski
This commit is contained in:
Jiangli Zhou 2018-08-24 15:33:28 -04:00
parent 347b95d500
commit 7a51b4a8fa
3 changed files with 6 additions and 4 deletions

View file

@ -655,7 +655,7 @@ Dictionary* ClassLoaderData::create_dictionary() {
size = _default_loader_dictionary_size;
resizable = true;
}
if (!DynamicallyResizeSystemDictionaries || DumpSharedSpaces || UseSharedSpaces) {
if (!DynamicallyResizeSystemDictionaries || DumpSharedSpaces) {
resizable = false;
}
return new Dictionary(this, size, resizable);