Ignore:
Timestamp:
Oct 21, 2013, 8:41:07 AM (12 years ago)
Author:
[email protected]
Message:

Add option so that JSC will crash if it can't allocate executable memory for the JITs
https://bugs.webkit.org/show_bug.cgi?id=123048
<rdar://problem/12856193>

Patch by Michael Saboff <[email protected]> on 2013-10-21
Reviewed by Geoffrey Garen.

Added new option, called crashIfCantAllocateJITMemory. If this option is true then we crash
when checking the validity of the executable allocator. The default value for this option is
false, but jsc sets it to true when built for iOS to make it straightforward to identify whether
the app can obtain executable memory.

  • jsc.cpp: Explicitly enable crashIfCantAllocateJITMemory on iOS.

(main):

  • runtime/Options.h: Added option crashIfCantAllocateJITMemory.
  • runtime/VM.cpp:

(JSC::enableAssembler): Modified to crash if option crashIfCantAllocateJITMemory
is enabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.