Adapt micro benchmark
Summary: - adds more property assignments - reduces the number of layout roots that exist simultanously Reviewed By: pasqualeanatriello Differential Revision: D8989389 fbshipit-source-id: 6a0ac800a4caad61a2f4bf98caa314855b70875f
This commit is contained in:
committed by
Facebook Github Bot
parent
292bfed102
commit
0e99980206
@@ -385,6 +385,9 @@ jlong jni_YGNodeCloneNoProps(
|
||||
}
|
||||
|
||||
void jni_YGNodeFree(alias_ref<jobject> thiz, jlong nativePointer) {
|
||||
if (nativePointer == 0) {
|
||||
return;
|
||||
}
|
||||
const YGNodeRef node = _jlong2YGNodeRef(nativePointer);
|
||||
delete reinterpret_cast<JNINodeContext*>(node->getContext());
|
||||
YGNodeFree(node);
|
||||
|
Reference in New Issue
Block a user