Skip to main content

Native memory tracking for all - Extending NMT beyond Hotspot

UA2.118 (Henriot) | Day 1 | 14:00 - 14:25 | Speakers: Johan Sjölén

Native memory tracking for all - Extending NMT beyond Hotspot
A picture of a devroom at FOSDEM 2024
Open in browser

Notes

Abstract

Native Memory Tracking (NMT) has supported diagnosing memory issues in Hotspot for over a decade. Yet, much of the native memory allocated cannot be accounted for using NMT, as it is not only Hotspot but core libraries, JNI and FFM which may perform native allocations. Clearly, NMT must extend itself if it intends to remain a useful tool.

In this talk, I will present a design for extending NMT to core libraries and a possible future extension to FFM. External APIs will be shown in the context of porting small portions of the core libraries. Internal design details, including data structure design, will likewise be presented and its trade offs discussed. Finally, possible ways of bringing NMT and the new Foreign Function & Memory API will be presented.

Attachments

Speakers

Johan Sjölén

Notice: The placeholder video image is licensed under CC BY-SA 4.0. The original image can be found hereChanges made to the image are: Cropped the image to a new ratio, part of the image was cut off.