On Wed, 6 Apr 2022 02:38:17 GMT, Stuart Marks <sma...@openjdk.org> wrote:
>> XenoAmess has updated the pull request incrementally with one additional >> commit since the last revision: >> >> revert changes in jdk.compile > > src/java.base/share/classes/java/util/HashMap.java line 2556: > >> 2554: */ >> 2555: static int calculateHashMapCapacity(int numMappings) { >> 2556: return (int) Math.ceil(numMappings / 0.75); > > Please use `(double) DEFAULT_LOAD_FACTOR` instead of `0.75`. @stuart-marks done. ------------- PR: https://git.openjdk.java.net/jdk/pull/7928