Changeset 181067 in webkit
- Timestamp:
- Mar 4, 2015, 9:14:53 PM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r181065 r181067 1 2015-03-04 David Kilzer <ddkilzer@apple.com> 2 3 Switch new soft-linking debug asserts to release asserts 4 <http://webkit.org/b/142176> 5 6 Reviewed by Alex Christensen. 7 8 * platform/mac/SoftLinking.h: 9 (SOFT_LINK_CONSTANT_SOURCE): Switch to release assert. 10 (SOFT_LINK_FUNCTION_SOURCE): Ditto. 11 * platform/win/SoftLinking.h: 12 (SOFT_LINK_CONSTANT_SOURCE): Ditto. 13 (SOFT_LINK_FUNCTION_SOURCE): Ditto. Note that this method is 14 effectively only called once because the function pointer is 15 replaced after the first time it's called. 16 1 17 2015-03-04 Alex Christensen <achristensen@webkit.org> 2 18 -
trunk/Source/WebCore/platform/mac/SoftLinking.h
r181036 r181067 338 338 dispatch_once(&once, ^{ \ 339 339 void* constant = dlsym(framework##Library(), #variableName); \ 340 ASSERT_WITH_MESSAGE(constant, "%s", dlerror()); \340 RELEASE_ASSERT_WITH_MESSAGE(constant, "%s", dlerror()); \ 341 341 constant##framework##variableName = *static_cast<variableType*>(constant); \ 342 342 }); \ … … 369 369 dispatch_once(&once, ^{ \ 370 370 softLink##framework##functionName = (resultType (*) parameterDeclarations) dlsym(framework##Library(), #functionName); \ 371 ASSERT_WITH_MESSAGE(softLink##framework##functionName, "%s", dlerror()); \371 RELEASE_ASSERT_WITH_MESSAGE(softLink##framework##functionName, "%s", dlerror()); \ 372 372 }); \ 373 373 return softLink##framework##functionName parameterNames; \ -
trunk/Source/WebCore/platform/win/SoftLinking.h
r181036 r181067 214 214 static void init##framework##variableName(void* context) { \ 215 215 variableType* ptr = reinterpret_cast<variableType*>(SOFT_LINK_GETPROCADDRESS(framework##Library(), #variableName)); \ 216 ASSERT(ptr); \216 RELEASE_ASSERT(ptr); \ 217 217 *static_cast<variableType*>(context) = *ptr; \ 218 218 } \ … … 243 243 { \ 244 244 softLink##framework##functionName = reinterpret_cast<resultType (__cdecl*)parameterDeclarations>(SOFT_LINK_GETPROCADDRESS(framework##Library(), #functionName)); \ 245 ASSERT(softLink##framework##functionName); \245 RELEASE_ASSERT(softLink##framework##functionName); \ 246 246 return softLink##framework##functionName parameterNames; \ 247 247 } \
Note:
See TracChangeset
for help on using the changeset viewer.