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

Turn libffi into a static link library #1900

Merged
merged 1 commit into from
May 14, 2018

Conversation

gacholio
Copy link
Contributor

The version of libffi used in OpenJ9 is only linked by the VM library,
so make libffi a static link library instead of dynamic to avoid issues
where another version of libffi has already been loaded into the
process.

Signed-off-by: Graham Chapman graham_chapman@ca.ibm.com

@gacholio gacholio requested a review from DanHeidinga May 11, 2018 18:28
@pshipton
Copy link
Member

jenkins compile all jdk8

@DanHeidinga DanHeidinga changed the title Turn libffi into a static link library WIP: Turn libffi into a static link library May 11, 2018
@DanHeidinga
Copy link
Member

Marking this as WIP due to extra testing required - particularly on zOS.

The version of libffi used in OpenJ9 is only linked by the VM library,
so make libffi a static link library instead of dynamic to avoid issues
where another version of libffi has already been loaded into the
process.

Signed-off-by: Graham Chapman <graham_chapman@ca.ibm.com>
@gacholio gacholio reopened this May 12, 2018
@gacholio
Copy link
Contributor Author

Tested as much as possible with the current infra issues. Z/OS not tested at all, but there's no reason to think it's any different than the rest.

@gacholio
Copy link
Contributor Author

There is an awful and fragile workaround here which will hopefully only live for a few days. The open builds scripts need to stop referring to the ffi shared library in any way - at that point I will remove the workaround.

@gacholio gacholio changed the title WIP: Turn libffi into a static link library Turn libffi into a static link library May 12, 2018
@gacholio
Copy link
Contributor Author

jenkins test sanity all jdk8

Copy link
Member

@DanHeidinga DanHeidinga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@DanHeidinga DanHeidinga merged commit 3a13d0e into eclipse-openj9:master May 14, 2018
@gacholio gacholio deleted the staticffi branch May 24, 2018 19:30
dnakamura added a commit to dnakamura/openj9 that referenced this pull request Nov 13, 2018
This is inline with changes already made to UMA. See eclipse-openj9#1900

Signed-off-by: Devin Nakamura <devinn@ca.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants