Native memory tracking for all - Extending NMT beyond Hotspot

Day 1 | 14:00 | 00:25 | UD2.208 (Decroly) | Johan Sjölén


Note: I'm reworking this at the moment, some things won't work.

The stream isn't available yet! Check back at 14:00.

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.