[wasm] Report out of memory conditions correctly for NewNativeModule
We are seeing rare crashes due to dereferencing a null pointer shortly after calling NewNativeModule. The most likely cause is that we failed the allocation and returned a null pointer. Now we will use V8::FatalProcessOutOfMemory so that this gets handled correctly. Bug: chromium:809002 Change-Id: I7e11897c4b93a1fb9eab3b5f16fb42c27e719f87 Reviewed-on: https://chromium-review.googlesource.com/905685Reviewed-by: Bill Budge <bbudge@chromium.org> Commit-Queue: Eric Holk <eholk@chromium.org> Cr-Commit-Position: refs/heads/master@{#51134}
Showing
Please
register
or
sign in
to comment