[profiler] Reject heapshot requests if we're not in on-demand mode.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Sun, 28 Aug 2016 18:25:10 +0000 (20:25 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Tue, 30 Aug 2016 08:01:07 +0000 (10:01 +0200)
commit9a142460536fa82be253bf0815aae8da0bda28bb
treec6f438ccc42444dfe0b92531942c32261fd6d188
parent39951e43ef2d1be3ad6df68bd59d9ad29b724ca3
[profiler] Reject heapshot requests if we're not in on-demand mode.

Previously, we would try to satisfy the heapshot request every single time
process_requests () was invoked, but since heap_walk () would never unset
heapshot_requested, we'd end up doing GCs over and over, causing massive
overhead.
mono/profiler/proflog.c