Changeset 20971 in webkit for trunk/JavaScriptCore/kjs/collector.cpp
- Timestamp:
- Apr 20, 2007, 1:47:42 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.