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

Commit 95932a2b authored by Hans Boehm's avatar Hans Boehm
Browse files

Revert^3 "Mark nativeWake as CriticalNative."

This reverts commit a618f1aa.

Reason for revert: Performance regression corrected itself before this was merged. Hence the original revert was not the culprit.

Change-Id: Ifd62f45e03e22a3b882c15ba4ec211c3250ff128
Bug: 332427512
parent a618f1aa
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -25,8 +25,6 @@ import android.util.Printer;
import android.util.SparseArray;
import android.util.proto.ProtoOutputStream;

import dalvik.annotation.optimization.CriticalNative;

import java.io.FileDescriptor;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -72,7 +70,6 @@ public final class MessageQueue {
    private native static void nativeDestroy(long ptr);
    @UnsupportedAppUsage
    private native void nativePollOnce(long ptr, int timeoutMillis); /*non-static for callbacks*/
    @CriticalNative
    private native static void nativeWake(long ptr);
    private native static boolean nativeIsPolling(long ptr);
    private native static void nativeSetFileDescriptorEvents(long ptr, int fd, int events);
+1 −1
Original line number Diff line number Diff line
@@ -225,7 +225,7 @@ static void android_os_MessageQueue_nativePollOnce(JNIEnv* env, jobject obj,
    nativeMessageQueue->pollOnce(env, obj, timeoutMillis);
}

static void android_os_MessageQueue_nativeWake(jlong ptr) {
static void android_os_MessageQueue_nativeWake(JNIEnv* env, jclass clazz, jlong ptr) {
    NativeMessageQueue* nativeMessageQueue = reinterpret_cast<NativeMessageQueue*>(ptr);
    nativeMessageQueue->wake();
}