RESOLVED FIXED 154125
Need WTFCrash workaround for shipping SafariForWebKitDevelopment binaries.
https://bugs.webkit.org/show_bug.cgi?id=154125
Summary Need WTFCrash workaround for shipping SafariForWebKitDevelopment binaries.
Mark Lam
Reported 2016-02-11 13:19:18 PST
Presently shipping SafariForWebKitDevelopment binaries still expect to link to a WTFCrash function. We need to provide this function as a workaround until we can update SafariForWebKitDevelopment to use the new inlined version.
Attachments
proposed patch. (2.26 KB, patch)
2016-02-11 13:25 PST, Mark Lam
mark.lam: review-
proposed patch 2 based on Geoff's suggestion. (4.63 KB, patch)
2016-02-11 16:25 PST, Mark Lam
no flags
proposed patch 3 with Joe's feedback. (4.55 KB, patch)
2016-02-11 16:47 PST, Mark Lam
joepeck: review+
Mark Lam
Comment 1 2016-02-11 13:25:20 PST
Created attachment 271079 [details] proposed patch.
Blaze Burg
Comment 2 2016-02-11 15:06:18 PST
Comment on attachment 271079 [details] proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=271079&action=review > Source/WTF/wtf/Assertions.cpp:507 > +// This is a workaround for presently shipping (crica early 2016) SafariForWebKitDevelopment Nit: 'circa'
Mark Lam
Comment 3 2016-02-11 15:11:59 PST
Comment on attachment 271079 [details] proposed patch. I've talked with Geoff offline, and am going to re-implement this in a hopefully cleaner way. Stay tuned.
Mark Lam
Comment 4 2016-02-11 16:25:38 PST
Created attachment 271103 [details] proposed patch 2 based on Geoff's suggestion.
Joseph Pecoraro
Comment 5 2016-02-11 16:40:19 PST
Comment on attachment 271103 [details] proposed patch 2 based on Geoff's suggestion. View in context: https://bugs.webkit.org/attachment.cgi?id=271103&action=review > Source/WTF/wtf/Assertions.h:157 > +ALWAYS_INLINE NO_RETURN_DUE_TO_CRASH void CRASH() It doesn't seem proper to introduce a new symbol into the global namespace that is not WTF prefixed. All other symbols in WTF introduces in Assertions.h/cpp are prefixed by "WTF". Can CRASH stay a macro, but just call to WTFCrashImpl()? > Source/WTF/wtf/Assertions.h:177 > +#else /* not defined(NDEBUG) && OS(DARWIN) */ > + > +WTF_EXPORT_PRIVATE NO_RETURN_DUE_TO_CRASH void WTFCrashImpl(); > +#define CRASH() WTFCrashImpl() And it would be pretty confusing for CRASH to be a macro on some ports, but a symbol on others. It would be nice to be consistent.
Mark Lam
Comment 6 2016-02-11 16:47:10 PST
Created attachment 271107 [details] proposed patch 3 with Joe's feedback.
Mark Lam
Comment 7 2016-02-11 16:55:13 PST
Comment on attachment 271107 [details] proposed patch 3 with Joe's feedback. Will commit manually.
Mark Lam
Comment 8 2016-02-11 17:00:50 PST
Thanks for the review. Landed in r196458: <http://trac.webkit.org/r196458>.
Note You need to log in before you can comment on or make changes to this bug.