-
Bug
-
Resolution: Fixed
-
P3
-
21
When working with the Linker, it can be difficult to discover which C types does the linker support. For instance, if some code needs to work with a C "long", what is its corresponding "canonical layout" for a given linker instance?
Such layout will obviously depend on the platform for which the linker is defined (e.g. on Linux/x64 such a layout would be equivalent to JAVA_LONG, on Windows/x64 such a layout would be equivalent to a JAVA_INT).
Since the set of types supported by a linker is linker-specific, the API should capture this property in a very loose fashion - e.g. just a map from ABI type names to canonical layouts.
Such layout will obviously depend on the platform for which the linker is defined (e.g. on Linux/x64 such a layout would be equivalent to JAVA_LONG, on Windows/x64 such a layout would be equivalent to a JAVA_INT).
Since the set of types supported by a linker is linker-specific, the API should capture this property in a very loose fashion - e.g. just a map from ABI type names to canonical layouts.
- csr for
-
JDK-8308304 A linker should expose the layouts it supports
- Closed
- duplicates
-
JDK-8306897 Add mapping from some C types to ValueLayout
- Closed
- relates to
-
JDK-8310967 Get promoted types for foreign variadic function
- Closed
- links to
-
Commit openjdk/panama-foreign/7a6fc805
-
Review openjdk/jdk/14037
-
Review openjdk/panama-foreign/839
(1 links to)