commit | 67516f52583ccb2164cc3a3a40c0863bf5b18875 | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Mon Feb 01 18:40:29 2016 +0000 |
committer | Narayan Kamath <narayan@google.com> | Tue Feb 02 16:24:51 2016 +0000 |
tree | d8ebbc05e196f25c26d3d2e0769c8335195807d3 | |
parent | 62fb7d2fa74ae24fc3f2cfbd4f85b615fd8a29dc [diff] |
WeakHashMap: Remove some unnecessary lazy initialization. If altHashing is true, we will almost always use the hashCode, so there's no point lazily initializing it (and paying for an additional field and synchronization). Note that altHashing is turned off by default. Change-Id: I08a4064846a549a186e397f63dee968ea7388a03