Fix the issue that local reference overflows in Yoga 1 (#1308)
Summary: X-link: https://github.com/facebook/react-native/pull/37929 X-link: https://github.com/facebook/litho/pull/952 Pull Request resolved: https://github.com/facebook/yoga/pull/1308 Long story in short, we're trying to fix an issue with Yoga that could potentially lead to an overflow in the JNI local reference table. Reviewed By: NickGerleman, astreet Differential Revision: D46653732 fbshipit-source-id: 0bc34bd5a819037c046c62b651e414b249cbdcb8
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ca4cf852aa
commit
f3e9b6bfb0
@@ -12,7 +12,8 @@ package com.facebook.yoga;
|
||||
public enum YogaExperimentalFeature {
|
||||
WEB_FLEX_BASIS(0),
|
||||
ABSOLUTE_PERCENTAGE_AGAINST_PADDING_EDGE(1),
|
||||
FIX_ABSOLUTE_TRAILING_COLUMN_MARGIN(2);
|
||||
FIX_ABSOLUTE_TRAILING_COLUMN_MARGIN(2),
|
||||
FIX_JNILOCAL_REF_OVERFLOWS(3);
|
||||
|
||||
private final int mIntValue;
|
||||
|
||||
@@ -29,6 +30,7 @@ public enum YogaExperimentalFeature {
|
||||
case 0: return WEB_FLEX_BASIS;
|
||||
case 1: return ABSOLUTE_PERCENTAGE_AGAINST_PADDING_EDGE;
|
||||
case 2: return FIX_ABSOLUTE_TRAILING_COLUMN_MARGIN;
|
||||
case 3: return FIX_JNILOCAL_REF_OVERFLOWS;
|
||||
default: throw new IllegalArgumentException("Unknown enum value: " + value);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user