Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Use NativeLibrary.TryLoad and prefer RTLD_LAZY over RTLD_NOW #35548

Merged
merged 9 commits into from
Feb 26, 2019
Merged

Use NativeLibrary.TryLoad and prefer RTLD_LAZY over RTLD_NOW #35548

merged 9 commits into from
Feb 26, 2019

Conversation

am11
Copy link
Member

@am11 am11 commented Feb 23, 2019

Use:

  • NativeLibrary.TryLoad in few test helpers
  • RTLD_LAZY instead of RTLD_NOW

Related to: #34633

@am11 am11 marked this pull request as ready for review February 23, 2019 22:13
@am11
Copy link
Member Author

am11 commented Feb 23, 2019

Send to Helix step takes most of the build time:

image

and in case of macOS, it cancelled after two hours:

image

@danmoseley
Copy link
Member

I hit retry on macOS

@stephentoub stephentoub merged commit 863b9bf into dotnet:master Feb 26, 2019
@am11 am11 deleted the use/NativeLibrary.Load branch February 26, 2019 04:13
@karelz karelz added this to the 3.0 milestone Mar 18, 2019
vcsjones added a commit to vcsjones/corefx that referenced this pull request Apr 28, 2020
…tnet#35548)

* Support unknown critical extensions on macOS.

If a certificate contains an unprocessable critical extension
in a certificate, map the "CriticalExtensions" status to
HasNotSupportedCriticalExtension instead of throwing an exception.

* Ignore WeakSignature chain status on macOS.

X509Chain on Windows will not check for modern signatures, so we
will let macOS do the same thing.
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…corefx#35548)

* Use NativeLibrary.TryLoad in ODBC test

* Use RTLD_LAZY instead of RTLD_NOW

* Add missing using statement

* More RTLD_NOW -> RTLD_LAZY

* Remove unused RTLD_NOW constant

* Use NativeLibrary.TryLoad instead of P/Invoke dlopen

* Inline method body in property

* Add fallback for netcoreapp2x and below

* Reduce visibility of const


Commit migrated from dotnet/corefx@863b9bf
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants