Commit d763c7d0 authored by ulan's avatar ulan Committed by Commit bot

Do not print stack-trace for OOM when GC is in progress.

BUG=chromium:553051
LOG=NO

Review URL: https://codereview.chromium.org/1433663002

Cr-Commit-Position: refs/heads/master@{#31877}
parent 087513d6
......@@ -4856,7 +4856,11 @@ void Heap::RecordStats(HeapStats* stats, bool take_snapshot) {
if (stats->js_stacktrace != NULL) {
FixedStringAllocator fixed(stats->js_stacktrace, kStacktraceBufferSize - 1);
StringStream accumulator(&fixed, StringStream::kPrintObjectConcise);
isolate()->PrintStack(&accumulator, Isolate::kPrintStackVerbose);
if (gc_state() == Heap::NOT_IN_GC) {
isolate()->PrintStack(&accumulator, Isolate::kPrintStackVerbose);
} else {
accumulator.Add("Cannot get stack trace in GC.");
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment