3 ms·
Java’s recent Foreign Function & Memory API gives you temporal, spatial and thread-safety. In short, foreign memory is represented as a Segment, with known bou
by kaba0 3y ago
Java’s recent Foreign Function & Memory API gives you temporal, spatial and thread-safety.
In short, foreign memory is represented as a Segment, with known bounds (it also has a possibility for unbounded “pointers”, for e.g. c strings), associated to a scope. It can only be used within that scope, and will get automatically closed at the end of it.