Changeset 65091 in webkit for trunk/JavaScriptCore/wtf
- Timestamp:
- Aug 10, 2010, 1:47:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.