projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e1face
)
NetBSD: Disable check for minimal stack size for undefined PTHREAD_STACK_MIN
author
Kamil Rytarowski
<n54@gmx.com>
Mon, 1 Feb 2016 00:10:41 +0000
(
01:10
+0100)
committer
Kamil Rytarowski
<n54@gmx.com>
Mon, 1 Feb 2016 00:11:23 +0000
(
01:11
+0100)
An alternative would be 'sysconf(_SC_THREAD_STACK_MIN)', but it might be no
good reason to prohibit single page stack size (PAGE_SIZE).
src/pal/src/thread/thread.cpp
patch
|
blob
|
history
diff --git
a/src/pal/src/thread/thread.cpp
b/src/pal/src/thread/thread.cpp
index
47fba85
..
f3247da
100644
(file)
--- a/
src/pal/src/thread/thread.cpp
+++ b/
src/pal/src/thread/thread.cpp
@@
-616,11
+616,13
@@
CorUnix::InternalCreateThread(
dwStackSize = CPalThread::s_dwDefaultThreadStackSize;
}
+#ifdef PTHREAD_STACK_MIN
if (PTHREAD_STACK_MIN > pthreadStackSize)
{
WARN("default stack size is reported as %d, but PTHREAD_STACK_MIN is "
"%d\n", pthreadStackSize, PTHREAD_STACK_MIN);
}
+#endif
if (pthreadStackSize < dwStackSize)
{