Memory usage is one of the most important aspects for devs in general and Java SE devs in particular. GC tips, tricks, internals, and more!
In this multi-part series, I aim to demystify the concepts behind memory management and take a deeper look at memory management in some of the modern programming languages.
I hope the series would give you some insights into what is happening under the hood of these languages in terms of memory management.
Welcome to Part 2 of this series, in which we will look at C language’s concept of pointers and structs.
Later on in this article, we will use Panama to mimic these concepts.
The goal is to call C function signatures that are often defined to accept pointers and structs.