Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue where bitModel could not be retrieved on GraalVM #61

Merged
merged 1 commit into from
May 5, 2020

Conversation

remkop
Copy link
Contributor

@remkop remkop commented Oct 23, 2019

This PR fixes an issue in the Library.getBitModel() method when running in a GraalVM native image.

Non-standard system properties sun.arch.data.model and com.ibm.vm.bitmode are not available in Substrate VM (GraalVM native images). Without this fix, the Library.getBitModel() method always returns -1, and the extractAndLoad method never succeeds, even if the native library is available as a resource in the GraalVM native image.

This PR partly addresses fusesource/jansi#162 ; the other part is addressed by fusesource/jansi-native#21 .

Non-standard system properties `sun.arch.data.model` and `com.ibm.vm.bitmode` are not available in Substrate VM (GraalVM native images). Without this fix, the `extractAndLoad` method never succeeds, even if the native library is available as a resource in the GraalVM native image.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants