Add config for avoiding JNI refs

Summary:
@public

Adds `YogaConfig#avoidGlobalJNIRefs` to control whether nodes created with a config will use weak global JNI refs. Used for experimentation.

Reviewed By: SidharthGuglani

Differential Revision: D14149982

fbshipit-source-id: c777c8b3af2167d96154db5aa6afec1476dac35b
This commit is contained in:
David Aurelio
2019-02-20 11:52:39 -08:00
committed by Facebook Github Bot
parent 2156de5fb5
commit 4463fe0856

View File

@@ -22,6 +22,7 @@ public class YogaConfig {
long mNativePointer;
private YogaLogger mLogger;
private YogaNodeCloneFunction mYogaNodeCloneFunction;
public boolean avoidGlobalJNIRefs = false;
private native long jni_YGConfigNew();
public YogaConfig() {