Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 0804245

Browse files
rmacnak-googlecommit-bot@chromium.org
authored andcommitted
[vm] Make filtering in Heap::RecordAfterGC consistent with ServiceEvent::ServiceEvent.
Bug: dart-lang/sdk#34640 Change-Id: Ie9771efe7af221c00d89f7f476d7faef76fc108f Reviewed-on: https://dart-review.googlesource.com/77640 Reviewed-by: Zach Anderson <[email protected]> Commit-Queue: Ryan Macnak <[email protected]>
1 parent 72d3798 commit 0804245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/vm/heap/heap.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -836,8 +836,8 @@ void Heap::RecordAfterGC(GCType type) {
836836
(type == kMarkCompact && gc_old_space_in_progress_));
837837
#ifndef PRODUCT
838838
if (FLAG_support_service && Service::gc_stream.enabled() &&
839-
!ServiceIsolate::IsServiceIsolateDescendant(Isolate::Current())) {
840-
ServiceEvent event(Isolate::Current(), ServiceEvent::kGC);
839+
!Isolate::IsVMInternalIsolate(isolate())) {
840+
ServiceEvent event(isolate(), ServiceEvent::kGC);
841841
event.set_gc_stats(&stats_);
842842
Service::HandleEvent(&event);
843843
}

0 commit comments

Comments
 (0)