Make AdjustAmountOfExternalAllocatedMemory() more robust.
authorulan@chromium.org <ulan@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 6 Aug 2012 13:49:13 +0000 (13:49 +0000)
committerulan@chromium.org <ulan@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 6 Aug 2012 13:49:13 +0000 (13:49 +0000)
commitb49b32599b1158e045f0e36f62de9bdb8686121c
treec9f0684d387d272d873a2d6653c7706a0622e0d9
parent235d8b4f94d592ab95d0d0875d264f8f120c40d1
Make AdjustAmountOfExternalAllocatedMemory() more robust.

Do not crash if called from a thread without V8 isolate, reset the external
memory counters in case of overflow, bump the external allocation limit.

This will allow us to track typed array allocation and deallocation in WebKit.

BUG=v8:2022,122097,42342
R=jkummerow@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10837122

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12262 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/api.cc
src/heap-inl.h
src/heap.cc