jnr / jnr-ffi

Java Abstracted Foreign Function Layer
Other
1.25k stars 156 forks source link

AsmLibraryLoader scanner functions iteration deterministic #311

Closed tran4o closed 1 year ago

tran4o commented 1 year ago

deterministic ordering of generated functions, important for native-image builds (requires generated bytecode to be constant)

headius commented 1 year ago

I'll merge this, but perhaps we should consider making the functions be a deterministic order directly, rather than passing them through TreeMap externally?

tran4o commented 1 year ago

yes for sure, i'll try making the functions deterministic and commit a new pull request soon.