Set at least PTHREAD_STACK_MIN stack size when creating threads.
authorpalfia@homejinni.com <palfia@homejinni.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Sat, 9 Nov 2013 00:14:21 +0000 (00:14 +0000)
committerpalfia@homejinni.com <palfia@homejinni.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Sat, 9 Nov 2013 00:14:21 +0000 (00:14 +0000)
commitb9ce668437bf5695a1fb3d36619d2b5d8a992355
tree4ad41cb03550355fba58c30c04e5c13fa33d51e9
parentc4a4c95e3268a2bc2018c7182996c1a5a993aca7
Set at least PTHREAD_STACK_MIN stack size when creating threads.

This patch makes sure, that the stack size of the new threads are never
less than PTHREAD_STACK_MIN, otherwise the pthread_attr_setstacksize()
function sets the default stack size (8MB), which leads to failure
in the BootUpMemoryUse test.

TEST=cctest/test-mark-compact/BootUpMemoryUse
BUG=
R=yangguo@chromium.org

Review URL: https://codereview.chromium.org/63183003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17610 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/platform-posix.cc