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

Method free

core/src/main/java/io/questdb/std/Unsafe.java:171–178  ·  view source on GitHub ↗
(long ptr, long size, int memoryTag)

Source from the content-addressed store, hash-verified

169 }
170
171 public static long free(long ptr, long size, int memoryTag) {
172 if (ptr != 0) {
173 UNSAFE.freeMemory(ptr);
174 incrFreeCount();
175 recordMemAlloc(-size, memoryTag);
176 }
177 return 0;
178 }
179
180 public static void freeMemory(long ptr) {
181 UNSAFE.freeMemory(ptr);

Callers 15

assertRawArrayMethod · 0.95
testMixedIOConcurrentMethod · 0.95
testReadFailsMethod · 0.95
testReadOver2GBMethod · 0.95
testSendFileOver2GBMethod · 0.95
testWriteFailsMethod · 0.95
testWriteOver2GBMethod · 0.95
createTempFileMethod · 0.95
testReportCrashFilesMethod · 0.95
assertEqualsMethod · 0.95

Calls 3

incrFreeCountMethod · 0.95
recordMemAllocMethod · 0.95
freeMemoryMethod · 0.80

Tested by 15

assertRawArrayMethod · 0.76
testMixedIOConcurrentMethod · 0.76
testReadFailsMethod · 0.76
testReadOver2GBMethod · 0.76
testSendFileOver2GBMethod · 0.76
testWriteFailsMethod · 0.76
testWriteOver2GBMethod · 0.76
createTempFileMethod · 0.76
testReportCrashFilesMethod · 0.76
assertEqualsMethod · 0.76