mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
Bug 1024265 - Adjust the trusted script buffer size for win64. r=bholley
--HG-- extra : rebase_source : f7e16ccaae5892f3b25ed1b0da6e0f3159dadd25
This commit is contained in:
parent
e851d0309c
commit
e96dd3a631
@ -3165,10 +3165,11 @@ XPCJSRuntime::XPCJSRuntime(nsXPConnect* aXPConnect)
|
||||
const size_t kStackQuota = 2 * kDefaultStackQuota;
|
||||
const size_t kTrustedScriptBuffer = 246 * 1024;
|
||||
#elif defined(XP_WIN)
|
||||
// 1MB is the default stack size on Windows, so use 900k. And since
|
||||
// windows stack frames are 3.4k each, let's use a buffer of 50k.
|
||||
// 1MB is the default stack size on Windows, so use 900k. And since 32-bit
|
||||
// Windows stack frames are 3.4k each, let's use a buffer of 48k and double
|
||||
// that for 64-bit.
|
||||
const size_t kStackQuota = 900 * 1024;
|
||||
const size_t kTrustedScriptBuffer = 50 * 1024;
|
||||
const size_t kTrustedScriptBuffer = 12 * sizeof(size_t) * 1024;
|
||||
// The following two configurations are linux-only. Given the numbers above,
|
||||
// we use 50k and 100k trusted buffers on 32-bit and 64-bit respectively.
|
||||
#elif defined(DEBUG)
|
||||
|
Loading…
Reference in New Issue
Block a user