Changeset 85364 in webkit
- Timestamp:
- Apr 29, 2011 4:12:44 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r85359 r85364 1 2011-04-29 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Dan Bernstein. 4 5 Add protection for shared memory failing to allocate 6 <rdar://problem/9125287> 7 https://bugs.webkit.org/show_bug.cgi?id=59842 8 9 * Platform/mac/SharedMemoryMac.cpp: 10 (WebKit::SharedMemory::create): 11 Add logging in shared memory failure cases. 12 13 * WebProcess/WebPage/DrawingAreaImpl.cpp: 14 (WebKit::DrawingAreaImpl::display): 15 Guard against ShareableBitmap failing to create a shared memory 16 backing. 17 1 18 2011-04-28 Stephanie Lewis <slewis@apple.com> 2 19 -
trunk/Source/WebKit2/Platform/mac/SharedMemoryMac.cpp
r78578 r85364 96 96 mach_vm_address_t address; 97 97 kern_return_t kr = mach_vm_allocate(mach_task_self(), &address, round_page(size), VM_FLAGS_ANYWHERE); 98 if (kr != KERN_SUCCESS) 99 return 0; 98 if (kr != KERN_SUCCESS) { 99 LOG_ERROR("Failed to allocate mach_vm_allocate shared memory (%zu bytes) [error code: %x]", size, kr); 100 return 0; 101 } 100 102 101 103 // Create a Mach port that represents the shared memory. … … 105 107 106 108 if (kr != KERN_SUCCESS) { 109 LOG_ERROR("Failed to create a mach port for shared memory [error code: %x]", kr); 107 110 mach_vm_deallocate(mach_task_self(), address, round_page(size)); 108 111 return 0; -
trunk/Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.cpp
r84682 r85364 572 572 573 573 RefPtr<ShareableBitmap> bitmap = ShareableBitmap::createShareable(bounds.size(), ShareableBitmap::SupportsAlpha); 574 if (!bitmap) 575 return; 576 574 577 if (!bitmap->createHandle(updateInfo.bitmapHandle)) 575 578 return;
Note: See TracChangeset
for help on using the changeset viewer.