提交 7c2c82c4 authored 作者: Thomas Mueller's avatar Thomas Mueller

This database no longer uses finalize() except for temporary files. The system…

This database no longer uses finalize() except for temporary files. The system property "h2.runFinalize" is no longer supported. Unclosed connections are still detected, but the opening stack trace is now collected only if connections are not closed repeatedly (starting with the second unclosed connection).
上级 47128795
...@@ -258,6 +258,10 @@ class ResultDiskBuffer implements ResultExternal { ...@@ -258,6 +258,10 @@ class ResultDiskBuffer implements ResultExternal {
} }
} }
protected void finalize() {
close();
}
public synchronized void close() { public synchronized void close() {
if (closed) { if (closed) {
return; return;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论