mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-03 21:17:31 +09:00
Bug 1444668 - Avoid allocating large AssemblerBuffers. r=luke, r=bbouvier, a=RyanVM
This commit is contained in:
parent
6395d4600f
commit
52269fa01a
5 changed files with 49 additions and 9 deletions
|
|
@ -385,14 +385,6 @@ class PageBitSet
|
|||
#endif
|
||||
};
|
||||
|
||||
// Limit on the number of bytes of executable memory to prevent JIT spraying
|
||||
// attacks.
|
||||
#if JS_BITS_PER_WORD == 32
|
||||
static const size_t MaxCodeBytesPerProcess = 128 * 1024 * 1024;
|
||||
#else
|
||||
static const size_t MaxCodeBytesPerProcess = 1 * 1024 * 1024 * 1024;
|
||||
#endif
|
||||
|
||||
// Per-process executable memory allocator. It reserves a block of memory of
|
||||
// MaxCodeBytesPerProcess bytes, then allocates/deallocates pages from that.
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue