aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-10-26 20:27:20 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-10-26 20:27:20 -0700
commitb81970153d69e1cbdfc4b3fb8482a439da557113 (patch)
treeea1c88a879b101653e68e142976d797c6a81708f /src
parent2c357e3d1a84ae30321f1d6bde357a40ad68e496 (diff)
comment about danger with FUNCTION_TABLE
Diffstat (limited to 'src')
-rw-r--r--src/preamble.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/preamble.js b/src/preamble.js
index 8f8921f5..faf7aa72 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -506,7 +506,8 @@ Module['Array_stringify'] = Array_stringify;
// Memory management
-var FUNCTION_TABLE;
+var FUNCTION_TABLE; // XXX: In theory the indexes here can be equal to pointers to stacked or malloced memory. Such comparisons should
+ // be false, but can turn out true. We should probably set the top bit to prevent such issues.
var PAGE_SIZE = 4096;
function alignMemoryPage(x) {