Don't take heap snapshot when doing Heap::RecordStats from OOM cases.
Filled issue 1718 to track this. Review URL: http://codereview.chromium.org/7995003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9397 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
d938560d59
commit
c23f9867e7
@ -185,7 +185,10 @@ void i::V8::FatalProcessOutOfMemory(const char* location, bool take_snapshot) {
|
||||
int end_marker;
|
||||
heap_stats.end_marker = &end_marker;
|
||||
i::Isolate* isolate = i::Isolate::Current();
|
||||
isolate->heap()->RecordStats(&heap_stats, take_snapshot);
|
||||
// BUG(1718):
|
||||
// Don't use the take_snapshot since we don't support HeapIterator here
|
||||
// without doing a special GC.
|
||||
isolate->heap()->RecordStats(&heap_stats, false);
|
||||
i::V8::SetFatalError();
|
||||
FatalErrorCallback callback = GetFatalErrorHandler();
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user