equal
deleted
inserted
replaced
43 void VirtualMemorySummary::snapshot(VirtualMemorySnapshot* s) { |
43 void VirtualMemorySummary::snapshot(VirtualMemorySnapshot* s) { |
44 // Only if thread stack is backed by virtual memory |
44 // Only if thread stack is backed by virtual memory |
45 if (ThreadStackTracker::track_as_vm()) { |
45 if (ThreadStackTracker::track_as_vm()) { |
46 // Snapshot current thread stacks |
46 // Snapshot current thread stacks |
47 VirtualMemoryTracker::snapshot_thread_stacks(); |
47 VirtualMemoryTracker::snapshot_thread_stacks(); |
48 as_snapshot()->copy_to(s); |
48 } |
49 } |
49 as_snapshot()->copy_to(s); |
50 } |
50 } |
51 |
51 |
52 SortedLinkedList<ReservedMemoryRegion, compare_reserved_region_base>* VirtualMemoryTracker::_reserved_regions; |
52 SortedLinkedList<ReservedMemoryRegion, compare_reserved_region_base>* VirtualMemoryTracker::_reserved_regions; |
53 |
53 |
54 int compare_committed_region(const CommittedMemoryRegion& r1, const CommittedMemoryRegion& r2) { |
54 int compare_committed_region(const CommittedMemoryRegion& r1, const CommittedMemoryRegion& r2) { |