Index: snapshot/win/process_snapshot_win.h |
diff --git a/snapshot/win/process_snapshot_win.h b/snapshot/win/process_snapshot_win.h |
index a7238fd7a34ebdeb0ece78182e338af1807f25fc..a1dd72334d6e28e3e00d5898d6084009ca7cd3a1 100644 |
--- a/snapshot/win/process_snapshot_win.h |
+++ b/snapshot/win/process_snapshot_win.h |
@@ -168,13 +168,11 @@ class ProcessSnapshotWin final : public ProcessSnapshot { |
WinVMSize DetermineSizeOfEnvironmentBlock( |
WinVMAddress start_of_environment_block); |
- // Starting from the address of a CRITICAL_SECTION, walks the doubly-linked |
- // list stored in RTL_CRITICAL_SECTION.DebugInfo.ProcessLocksList adding both |
- // the RTL_CRITICAL_SECTION and the RTL_CRITICAL_SECTION_DEBUG memory blocks |
- // to the snapshot. |
+ // Starting from the address of a CRITICAL_SECTION, add a lock and, if valid, |
+ // its .DebugInfo field to the snapshot. |
template <class Traits> |
- void ReadLocks(WinVMAddress start, |
- PointerVector<internal::MemorySnapshotWin>* into); |
+ void ReadLock(WinVMAddress start, |
+ PointerVector<internal::MemorySnapshotWin>* into); |
internal::SystemSnapshotWin system_; |
PointerVector<internal::MemorySnapshotWin> extra_memory_; |