MCPcopy Index your code
hub / github.com/questdb/questdb / close

Method close

core/src/main/java/io/questdb/FreeOnExit.java:37–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 private final ObjList<Closeable> list = new ObjList<>();
36
37 @Override
38 public void close() {
39 // free instances in reverse order to which we allocated them
40 for (int i = list.size() - 1; i >= 0; i--) {
41 Misc.free(list.getQuick(i));
42 }
43 list.clear();
44 }
45
46 public <T extends Closeable> T register(T closeable) {
47 if (closeable != null) {

Callers

nothing calls this directly

Calls 4

freeMethod · 0.95
sizeMethod · 0.65
getQuickMethod · 0.65
clearMethod · 0.65

Tested by

no test coverage detected