MCPcopy Create free account
hub / github.com/ddf-project/DDF / run

Method run

core/src/main/java/io/ddf/util/PhantomReference.java:58–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56
57 Thread referenceThread = new Thread() {
58 public void run() {
59 while (true) {
60 try {
61 PhantomReference ref = (PhantomReference) referenceQueue.remove();
62
63 LOG.info(String.format("GC removing %s (%s) from memory", ref.getClass().getName(), ref.hashCode()));
64
65 ref.cleanup();
66 phantomReferences.remove(ref);
67 } catch (Exception ex) {
68 // log exception, continue
69 LOG.error("Error while cleaning up reference queue", ex);
70 }
71 }
72 }
73 };
74 referenceThread.setDaemon(true);
75 referenceThread.start();

Callers 2

sqlHandleMethod · 0.45
sql2ddfHandleMethod · 0.45

Calls 4

cleanupMethod · 0.95
removeMethod · 0.65
getNameMethod · 0.65
hashCodeMethod · 0.45

Tested by

no test coverage detected