WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
211751
Replace isNullFunctionPointer with real weak-linking support
https://bugs.webkit.org/show_bug.cgi?id=211751
Summary
Replace isNullFunctionPointer with real weak-linking support
Jer Noble
Reported
2020-05-11 15:49:51 PDT
Replace isNullFunctionPointer with real weak-linking support
Attachments
Patch
(24.36 KB, patch)
2020-05-11 16:13 PDT
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Patch
(8.53 KB, patch)
2020-05-13 09:12 PDT
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Patch
(11.54 KB, patch)
2020-05-13 09:30 PDT
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Jer Noble
Comment 1
2020-05-11 16:13:15 PDT
Created
attachment 399065
[details]
Patch
Sam Weinig
Comment 2
2020-05-12 08:53:57 PDT
What this change adds is what is commonly called "soft" linking, at least in macOS parlance, not weak linking. This doesn't seem like the right direction to go in to me.
Jer Noble
Comment 3
2020-05-13 08:43:17 PDT
(In reply to Sam Weinig from
comment #2
)
> What this change adds is what is commonly called "soft" linking, at least in > macOS parlance, not weak linking. This doesn't seem like the right direction > to go in to me.
There's a crucial difference: this patch doesn't load symbols at runtime; it only checks whether those symbols were loaded at process launch.
Jer Noble
Comment 4
2020-05-13 09:12:05 PDT
Created
attachment 399269
[details]
Patch
Jer Noble
Comment 5
2020-05-13 09:30:33 PDT
Created
attachment 399273
[details]
Patch
Sam Weinig
Comment 6
2020-05-13 13:44:34 PDT
Comment on
attachment 399273
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=399273&action=review
> Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProviderCocoa.cpp:37 > +WTF_WEAK_LINK_FORCE_IMPORT(webrtc::setApplicationStatus);
Interesting. I couldn't get this to work when I tried.
EWS
Comment 7
2020-05-13 13:49:29 PDT
Committed
r261651
: <
https://trac.webkit.org/changeset/261651
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 399273
[details]
.
Radar WebKit Bug Importer
Comment 8
2020-05-13 13:50:15 PDT
<
rdar://problem/63198533
>
mitz
Comment 9
2020-05-13 13:51:38 PDT
(In reply to Sam Weinig from
comment #6
)
> Comment on
attachment 399273
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=399273&action=review
> > > Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProviderCocoa.cpp:37 > > +WTF_WEAK_LINK_FORCE_IMPORT(webrtc::setApplicationStatus); > > Interesting. I couldn't get this to work when I tried.
I think that thing that doesn’t work is redeclaring member functions like this. webrtc ::setApplicationStatus isn’t a member function.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug