mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-30 23:22:41 +08:00
Differential Revision: D3521227 fbshipit-source-id: 57db97ea2af2b2c9e55f380ce05d9e78a5f9d48c
23 lines
579 B
Java
23 lines
579 B
Java
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
package com.facebook.jni;
|
|
|
|
import com.facebook.proguard.annotations.DoNotStrip;
|
|
import com.facebook.soloader.SoLoader;
|
|
|
|
@DoNotStrip
|
|
public class ThreadScopeSupport {
|
|
static {
|
|
SoLoader.loadLibrary("fb");
|
|
}
|
|
|
|
// This is just used for ThreadScope::withClassLoader to have a java function
|
|
// in the stack so that jni has access to the correct classloader.
|
|
@DoNotStrip
|
|
private static void runStdFunction(long ptr) {
|
|
runStdFunctionImpl(ptr);
|
|
}
|
|
|
|
private static native void runStdFunctionImpl(long ptr);
|
|
}
|