jdk.internal.foreign.memory.Types defines a bunch of Layouts under C type names. But the layouts are hard coded for the SysV ABI.
We could update this class to choose the right layout based on the ABI. But currently, these constants are mostly used in tests, so we could also just remove the Types class, and replace usage by calling layout() on the respective constant in the NativeTypes class.
We could update this class to choose the right layout based on the ABI. But currently, these constants are mostly used in tests, so we could also just remove the Types class, and replace usage by calling layout() on the respective constant in the NativeTypes class.