Skip to content

fix(runtime): Unload framework bundles in SymbolLoader::load #1257

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

Merged
merged 2 commits into from
Feb 19, 2020

Conversation

mbektchiev
Copy link
Contributor

@mbektchiev mbektchiev commented Feb 18, 2020

  • Use NSBundle to load bundles instead of CFBundleLoadExecutable
  • Do not attempt load a bundle more times than it is needed
  • Unload the bundle if its state was previously unloaded. Sometimes
    framework bundles use resource bundles of the same name and keeping
    the framework loaded breaks them. OTH, loading and unloading a framework
    bundle is sufficient for its executable code to be registered with the
    Objective-C runtime.

PR Checklist

refs #1252

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature.
paulbalandan John Paul E. Balandan, CPA
`getBlacklistedRusage_info_v0` shouldn't  be called as
its return type is excluded from metadata.
@mbektchiev mbektchiev added the bug label Feb 18, 2020
@mbektchiev mbektchiev added this to the 6.5.0 milestone Feb 18, 2020
@mbektchiev mbektchiev self-assigned this Feb 18, 2020
@cla-bot cla-bot bot added the cla: yes label Feb 18, 2020

Verified

This commit was signed with the committer’s verified signature.
paulbalandan John Paul E. Balandan, CPA
* Use NSBundle to load bundles instead of `CFBundleLoadExecutable`
* Do not attempt load a bundle more times than it is needed
* Unload the bundle if it's state was previously unloaded. Sometimes
framework bundles use resource bundles of the same name and keeping
 the framework loaded breaks them. OTH, loading and unloading a framework
 bundle is sufficient for its. executable code to be registered with the
Objective-C runtime.
@mbektchiev mbektchiev force-pushed the bektchiev/fix-symbol-loader branch from 44abb25 to 9796e38 Compare February 19, 2020 13:45
@mbektchiev mbektchiev merged commit 2efb4f8 into master Feb 19, 2020
@mbektchiev mbektchiev deleted the bektchiev/fix-symbol-loader branch February 19, 2020 14:35
@mbektchiev mbektchiev changed the title fix(runtime): Unload frameworks in SymbolLoader::load fix(runtime): Unload framework bundles in SymbolLoader::load Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants