diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-02-17 17:49:19 +0100 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-17 17:49:19 +0100 |
commit | b3e9426b9775daf99210f337659a37876013d623 (patch) | |
tree | 0a3245a0e3b3c55c2097e0c9de56f953f17b3a7d /src/settings.js | |
parent | d9d2876b0b7370ff99c37483a5f6e97515499e81 (diff) |
memory corruption checker
Diffstat (limited to 'src/settings.js')
-rw-r--r-- | src/settings.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/settings.js b/src/settings.js index 002e66d4..74176914 100644 --- a/src/settings.js +++ b/src/settings.js @@ -134,6 +134,16 @@ var SAFE_HEAP_LOG = 0; // Log out all SAFE_HEAP operations var ASM_HEAP_LOG = 0; // Simple heap logging, like SAFE_HEAP_LOG but cheaper, and in asm.js +var CORRUPTION_CHECK = 0; // When enabled, will emit a buffer area at the beginning and + // end of each allocation on the heap, filled with canary + // values that can be checked later. Corruption is checked for + // at the end of each at each free() (see jsifier to add more, and you + // can add more manual checks by calling CorruptionChecker.checkAll). + // 0 means not enabled, higher values mean the size of the + // buffer areas as a multiple of the allocated area (so + // 1 means 100%, or buffer areas equal to allocated area, + // both before and after). + var LABEL_DEBUG = 0; // 1: Print out functions as we enter them // 2: Also print out each label as we enter it var LABEL_FUNCTION_FILTERS = []; // Filters for function label debug. |