+2006-11-02 George Staikos <staikos@kde.org>
+
+ Reviewed by Maciej.
+
+ * collector.cpp:
+ Remove a deprecated pthreads call.
+
2006-11-02 Anders Carlsson <acarlsson@apple.com>
Reviewed by Maciej, landed by Anders.
// FIXME: this function is non-portable; other POSIX systems may have different np alternatives
pthread_getattr_np(thread, &sattr);
#endif
- // Should work but fails on Linux (?)
- // pthread_attr_getstack(&sattr, &stackBase, &stackSize);
- pthread_attr_getstackaddr(&sattr, &stackBase);
+ size_t stackSize;
+ int rc = pthread_attr_getstack(&sattr, &stackBase, &stackSize);
+ (void)rc; // FIXME: deal with error code somehow? seems fatal...
assert(stackBase);
+ stackBase = (void*)(size_t(stackBase) + stackSize);
stackThread = thread;
}
#else