Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac7db78d authored by Peter Kalauskas's avatar Peter Kalauskas
Browse files

Fix unmatched trace section bug

Fix a bug in which too many trace sections were closed due to use of the
closed-ended range operator instead of the open-ended range operator.

Flag: ACONFIG com.android.systemui.coroutine_tracing DISABLED
Bug: 289353932
Test: Enable coroutine tracing, open trace
Change-Id: I97d5c9ca60aedac6fd58e5f7de57c50dabcf2eb1
parent 2176df2e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ internal class TraceData : TraceStatus {
     * Removes all current trace slices from the current thread. Called when coroutine is suspended.
     */
    internal fun endAllOnThread() {
        for (i in 0..slices.size) {
        for (i in 0..<slices.size) {
            endSlice()
        }
    }