Verified Commit 4c25597a authored by Jon Coppeard's avatar Jon Coppeard Committed by ma1
Browse files

Bug 1979502 - Check slices vector not empty before accessing the last slice r=sfink a=RyanVM

|aborted| is reset to false at the end of a slice but
GCRuntime::waitBackgroundSweepEnd can be called outside of a slice.

Differential Revision: https://phabricator.services.mozilla.com/D260685
parent 111779ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1518,7 +1518,7 @@ void Statistics::recordParallelPhase(PhaseKind phaseKind,
                                     TimeDuration duration) {
  MOZ_ASSERT(CurrentThreadCanAccessRuntime(gc->rt));

  if (aborted) {
  if (slices_.empty()) {
    return;
  }