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

Method updateMemoryUsage

core/src/main/java/io/questdb/std/Rosti.java:369–372  ·  view source on GitHub ↗
(long pRosti, long oldSize)

Source from the content-addressed store, hash-verified

367 }
368
369 public static void updateMemoryUsage(long pRosti, long oldSize) {
370 long newSize = Rosti.getAllocMemory(pRosti);
371 Unsafe.recordMemAlloc(newSize - oldSize, MemoryTag.NATIVE_ROSTI);
372 }
373
374 private static native long alloc(long pKeyTypes, int keyTypeCount, long capacity);
375

Callers 2

resetMethod · 0.95
updateMemoryUsageMethod · 0.95

Calls 2

getAllocMemoryMethod · 0.95
recordMemAllocMethod · 0.95

Tested by

no test coverage detected