Changeset 65091 in webkit
- Timestamp:
- Aug 10, 2010 1:47:08 PM (14 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r65081 r65091 1 2010-08-10 Patrick Gansterer <paroga@paroga.com> 2 3 Reviewed by Eric Seidel. 4 5 Make FastMalloc more portable. 6 https://bugs.webkit.org/show_bug.cgi?id=41790 7 8 * wtf/FastMalloc.cpp: 9 (WTF::TCMalloc_Central_FreeList::Populate): 10 (WTF::TCMalloc_ThreadCache::CreateCacheIfNecessary): 11 1 12 2010-08-10 Patrick Gansterer <paroga@paroga.com> 2 13 -
trunk/JavaScriptCore/wtf/FastMalloc.cpp
r65042 r65091 416 416 #include "TCSystemAlloc.h" 417 417 #include <algorithm> 418 #include <errno.h>419 418 #include <limits> 420 419 #include <pthread.h> … … 422 421 #include <stddef.h> 423 422 #include <stdio.h> 423 #if HAVE(ERRNO_H) 424 #include <errno.h> 425 #endif 424 426 #if OS(UNIX) 425 427 #include <unistd.h> 426 428 #endif 427 #if COMPILER(MSVC)429 #if OS(WINDOWS) 428 430 #ifndef WIN32_LEAN_AND_MEAN 429 431 #define WIN32_LEAN_AND_MEAN … … 2688 2690 } 2689 2691 if (span == NULL) { 2692 #if HAVE(ERRNO_H) 2690 2693 MESSAGE("allocation failed: %d\n", errno); 2694 #elif OS(WINDOWS) 2695 MESSAGE("allocation failed: %d\n", ::GetLastError()); 2696 #else 2697 MESSAGE("allocation failed\n"); 2698 #endif 2691 2699 lock_.Lock(); 2692 2700 return; … … 3055 3063 3056 3064 heap->in_setspecific_ = true; 3057 pthread_setspecific(heap_key,NULL);3065 setThreadHeap(NULL); 3058 3066 #ifdef HAVE_TLS 3059 3067 // Also update the copy in __thread
Note: See TracChangeset
for help on using the changeset viewer.