зеркало из https://github.com/mozilla/gecko-dev.git
Bug 961297 - Increase buffer between PJS worker thread stack size and limit marker. (r=nmatsakis)
This commit is contained in:
Родитель
c3d3595b50
Коммит
fc03ed3787
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче