Changeset 20971 in webkit for trunk/JavaScriptCore
- Timestamp:
- Apr 20, 2007, 1:47:42 AM (18 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r20970 r20971 1 2007-04-20 Mark Rowe <[email protected]> 2 3 Reviewed by Maciej. 4 5 Fix bogus optimisation in the generic pthread code path. 6 7 * kjs/collector.cpp: 8 (KJS::currentThreadStackBase): 9 1 10 2007-04-20 Mark Rowe <[email protected]> 2 11 -
trunk/JavaScriptCore/kjs/collector.cpp
r20970 r20971 237 237 #elif PLATFORM(UNIX) 238 238 static void *stackBase = 0; 239 static size_t stackSize = 0; 239 240 static pthread_t stackThread; 240 241 pthread_t thread = pthread_self(); … … 249 250 pthread_getattr_np(thread, &sattr); 250 251 #endif 251 size_t stackSize;252 252 int rc = pthread_attr_getstack(&sattr, &stackBase, &stackSize); 253 253 (void)rc; // FIXME: deal with error code somehow? seems fatal... 254 254 ASSERT(stackBase); 255 255 pthread_attr_destroy(&sattr); 256 return (void*)(size_t(stackBase) + stackSize);257 256 stackThread = thread; 258 257 } 258 return (void*)(size_t(stackBase) + stackSize); 259 259 #else 260 260 #error Need a way to get the stack base on this platform
Note:
See TracChangeset
for help on using the changeset viewer.