MCPcopy Create free account
hub / github.com/BaseXdb/basex / gc

Method gc

basex-core/src/main/java/org/basex/util/Performance.java:136–138  ·  view source on GitHub ↗

Performs some garbage collection. GC behavior in Java is a pretty complex task. Still, garbage collection gets more probable when being called several times. @param count number of times to execute garbage collection

(final int count)

Source from the content-addressed store, hash-verified

134 * @param count number of times to execute garbage collection
135 */
136 public static void gc(final int count) {
137 for(int c = 0; c < count; ++c) System.gc();
138 }
139
140 /**
141 * Returns the current memory consumption in bytes.

Callers 10

runMethod · 0.95
cacheMethod · 0.95
evalMethod · 0.95
runMethod · 0.95
itemMethod · 0.95
itemMethod · 0.95
valueMethod · 0.95
cleanMethod · 0.95
actionMethod · 0.95
testGarbageCollectionMethod · 0.80

Calls

no outgoing calls

Tested by 1

testGarbageCollectionMethod · 0.64