RFR: 8277489: Rewrite JAAS UnixLoginModule with FFM [v2]

Weijun Wang weijun at openjdk.org
Fri Jan 2 14:00:54 UTC 2026


On Fri, 2 Jan 2026 13:34:57 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

>> Weijun Wang has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   rewrite without jextract
>
> src/jdk.security.auth/share/classes/com/sun/security/auth/module/UnixSystem.java line 83:
> 
>> 81:     private static final ValueLayout.OfLong C_LONG
>> 82:             = (ValueLayout.OfLong) LINKER.canonicalLayouts().get("long");
>> 83: 
> 
> These functions are probably always fast and never block, right?
> If so, we could use `Linker.Option.critical` to make the calls faster if performance is important.

Maybe not necessary, in JAAS one should not login again and again.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28931#discussion_r2657759208


More information about the build-dev mailing list