8189319: Add a java.util.Properties constructor that takes an initial capacity

Reviewed-by: martin, mchung, rriggs
This commit is contained in:
Brent Christian 2017-10-30 16:16:01 -07:00
parent 56eea64225
commit f32470d85f
3 changed files with 72 additions and 4 deletions

View file

@ -1937,7 +1937,7 @@ public final class System {
// initialization. So make sure the "props" is available at the
// very beginning of the initialization and all system properties to
// be put into it directly.
props = new Properties();
props = new Properties(84);
initProperties(props); // initialized by the VM
// There are certain system configurations that may be controlled by