-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use direct method mapping for zstd (#108172)
JNA supports two types of mapping to native methods, proxying and direct method mapping. Proxying is nicer for unit testing, but unfortunately the proxied methods are lazily loaded. NativeAccess expects that methods are linked during static init, before SecurityManager is initialized. For any native methods called after security manager init, the proxied method will fail. This commit changes the zstd bindings to use direct method mapping so that calling zstd methods does not fail when using JNA (pre Java 21). closes #107504 closes #107770
- Loading branch information
Showing
1 changed file
with
12 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters