summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.28.target
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2023-09-08 02:14:20 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2023-09-12 22:43:15 +0200
commitd4d6c2b5af9b984ae824fb0073e1b368b39b1aa4 (patch)
tree9c9b1b4495c499e8aa89874c3dc5d0a7d3b014f6 /org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.28.target
parentf94be665f12d85304db056c6cb8934870de3e45a (diff)
downloadjgit-d4d6c2b5af9b984ae824fb0073e1b368b39b1aa4.tar.gz
jgit-d4d6c2b5af9b984ae824fb0073e1b368b39b1aa4.zip
Add ShutdownHook to cleanup FileLocks on graceful JVM shutdown
This should avoid stale lock files if the JVM is terminated gracefully. Implement a ShutdownHook which can register/unregister listeners which need to do some cleanup during graceful JVM shutdown. This hook is registered as a Java shutdown hook and when the JVM shuts down calls #onShutdown of registered listeners using a parallel stream to let them run concurrently. See https://docs.oracle.com/javase/8/docs/technotes/guides/lang/hook-design.html Bug: 582379 Change-Id: I1621dc5f7d9a8c832b6d1b74cbc47578b1c2f0b8
Diffstat (limited to 'org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.28.target')
0 files changed, 0 insertions, 0 deletions