On Thu, 31 Jul 2025 12:15:32 GMT, Maurizio Cimadamore <mcimadam...@openjdk.org> 
wrote:

>> IMHO the more honest approach is to move these constants closer to the _h 
>> generated files that use them, as that's the way jextract intends them to be 
>> used.
>
> (Also, the latest version of jextract uses `Linker.canonicalLayouts` to 
> derive these constants, which might be more robust longer term)

I can update FFMUtils so that all the different pointers user 
`Liner.canonicalLayouts`,

As for the other point, I think you're right that the shared FFMUtils won't 
work though I think it's a bit of a shame because of the number of similar 
duplicate lines. I can move it back to using different ones for each platform 
in the next commit

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/25546#discussion_r2269522249

Reply via email to