diff options
author | tingyuan <thuang@mozilla.com> | 2013-04-15 14:16:44 +0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-21 17:09:58 -0700 |
commit | de2dab04c9cd604c138efd6bec43071ded5eaf27 (patch) | |
tree | f449a45b97819c9baf2d520c85ebff93bbb70439 /tools/file_packager.py | |
parent | 0cc707a60b3aaa18c4caaf366e8edb420eb09ad3 (diff) |
mmap(): Align to malloc's default alignment instead of pages.
Diffstat (limited to 'tools/file_packager.py')
-rw-r--r-- | tools/file_packager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/file_packager.py b/tools/file_packager.py index 0154e84e..646444e5 100644 --- a/tools/file_packager.py +++ b/tools/file_packager.py @@ -352,7 +352,7 @@ if has_preloaded: use_data += ''' curr = DataRequest.prototype.requests['%s']; var data = byteArray.subarray(%d, %d); - ptr = _valloc(%d); + ptr = _malloc(%d); HEAPU8.set(data, ptr); curr.response = HEAPU8.subarray(ptr, ptr + %d); curr.onload(); |