Don't create the stream eagerly in lock(); that may cause JGit to exceed OS or JVM limits on open file descriptors if many locks need to be created, for instance when creating many refs. Instead create the output stream only when one really needs to write something. Bug: 573328 Change-Id: If9441ed40494d46f594a896d34a5c4f56f91ebf4 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch> |
3 years ago | |
---|---|---|
.. | ||
revwalk | Move reachability checker generation into the ObjectReader object | 3 years ago |
storage | LockFile: create OutputStream only when needed | 3 years ago |
transport | HTTP: cookie file stores expiration in seconds | 3 years ago |