| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1483ebd commit f22132e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -146,8 +146,11 @@ class SamplingAllocationObserver : public AllocationObserver { | |||
| 146 | 146 | void Step(int bytes_allocated, Address soon_object, size_t size) override { | |
| 147 | 147 | USE(heap_); | |
| 148 | 148 | DCHECK(heap_->gc_state() == Heap::NOT_IN_GC); | |
| 149 | - DCHECK(soon_object); | ||
| 150 | - profiler_->SampleObject(soon_object, size); | ||
| 149 | + if (soon_object) { | ||
| 150 | + // TODO(ofrobots): it would be better to sample the next object rather | ||
| 151 | + // than skipping this sample epoch if soon_object happens to be null. | ||
| 152 | + profiler_->SampleObject(soon_object, size); | ||
| 153 | + } | ||
| 151 | 154 | } | |
| 152 | 155 | ||
| 153 | 156 | intptr_t GetNextStepSize() override { return GetNextSampleInterval(rate_); } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments