Bug 961297 - Increase buffer between PJS worker thread stack size and limit marker. (r=nmatsakis)

This commit is contained in:
Shu-yu Guo 2014-02-14 10:22:10 -08:00
Родитель c3d3595b50
Коммит fc03ed3787
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -265,9 +265,9 @@ ThreadPoolWorker::run()
{
// This is hokey in the extreme. To compute the stack limit,
// subtract the size of the stack from the address of a local
// variable and give a 10k buffer. Is there a better way?
// variable and give a 100k buffer. Is there a better way?
// (Note: 2k proved to be fine on Mac, but too little on Linux)
uintptr_t stackLimitOffset = WORKER_THREAD_STACK_SIZE - 10*1024;
uintptr_t stackLimitOffset = WORKER_THREAD_STACK_SIZE - 100*1024;
uintptr_t stackLimit = (((uintptr_t)&stackLimitOffset) +
stackLimitOffset * JS_STACK_GROWTH_DIRECTION);