Changeset 29454 in webkit for trunk/JavaScriptCore/kjs/collector.cpp
- Timestamp:
- Jan 13, 2008, 11:47:56 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/collector.cpp
r29396 r29454 1 1 // -*- mode: c++; c-basic-offset: 4 -*- 2 2 /* 3 * This file is part of the KDE libraries4 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 5 4 * Copyright (C) 2007 Eric Seidel <[email protected]> … … 59 58 #include <sys/mman.h> 60 59 #include <unistd.h> 60 61 #if PLATFORM(SOLARIS) 62 #include <thread.h> 63 #endif 61 64 62 65 #if HAVE(PTHREAD_NP_H) … … 334 337 ); 335 338 return (void*)pTib->StackBase; 339 #elif PLATFORM(SOLARIS) 340 stack_t s; 341 thr_stksegment(&s); 342 return s.ss_sp; 336 343 #elif PLATFORM(UNIX) 337 static void *stackBase = 0;344 static void* stackBase = 0; 338 345 static size_t stackSize = 0; 339 346 static pthread_t stackThread; … … 350 357 #endif 351 358 int rc = pthread_attr_getstack(&sattr, &stackBase, &stackSize); 352 (void)rc; // FIXME: deal with error code somehow? seems fatal...359 (void)rc; // FIXME: Deal with error code somehow? Seems fatal. 353 360 ASSERT(stackBase); 354 361 pthread_attr_destroy(&sattr); 355 362 stackThread = thread; 356 363 } 357 return (void*)(size_t(stackBase) + stackSize);364 return static_cast<char*>(stackBase) + stackSize; 358 365 #else 359 366 #error Need a way to get the stack base on this platform
Note:
See TracChangeset
for help on using the changeset viewer.