| Index: minidump/minidump_thread_writer.cc
|
| diff --git a/minidump/minidump_thread_writer.cc b/minidump/minidump_thread_writer.cc
|
| index a36d76144263163a281b08acb9e276dd11f5f76c..72050bdb167575d63719a56c30a31deed483faeb 100644
|
| --- a/minidump/minidump_thread_writer.cc
|
| +++ b/minidump/minidump_thread_writer.cc
|
| @@ -150,6 +150,11 @@ void MinidumpThreadListWriter::InitializeFromSnapshot(
|
| thread->InitializeFromSnapshot(thread_snapshot, thread_id_map);
|
| AddThread(thread.Pass());
|
| }
|
| +
|
| + // Do this in a separate loop to keep the thread stacks earlier in the dump,
|
| + // and together.
|
| + for (const ThreadSnapshot* thread_snapshot : thread_snapshots)
|
| + memory_list_writer_->AddFromSnapshot(thread_snapshot->ExtraMemory());
|
| }
|
|
|
| void MinidumpThreadListWriter::SetMemoryListWriter(
|
|
|