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

Commit 0d0e8d11 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't use concurrent message queue when debugging is enabled" into main

parents 2eb11788 64d38fd4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ import android.util.SparseArray;
import android.util.proto.ProtoOutputStream;

import dalvik.annotation.optimization.NeverCompile;
import dalvik.system.VMDebug;

import java.io.FileDescriptor;
import java.lang.annotation.Retention;
@@ -110,7 +111,7 @@ public final class MessageQueue {
    private native static void nativeSetFileDescriptorEvents(long ptr, int fd, int events);

    MessageQueue(boolean quitAllowed) {
        mUseConcurrent = UserHandle.isCore(Process.myUid());
        mUseConcurrent = UserHandle.isCore(Process.myUid()) && !VMDebug.isDebuggingEnabled();
        mQuitAllowed = quitAllowed;
        mPtr = nativeInit();
    }