From 5f45f8a71c70e2be31506838c87e8d0494d7925b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Tue, 29 Oct 2024 06:20:13 -0700 Subject: [PATCH] Remove unused flags for Hermes VM (#47244) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47244 Changelog: [internal] Reviewed By: rshest Differential Revision: D65062303 fbshipit-source-id: 7372536643636b8a1923d9e1194ebca45f856e57 --- .../ReactCommon/react/runtime/hermes/HermesInstance.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/react-native/ReactCommon/react/runtime/hermes/HermesInstance.cpp b/packages/react-native/ReactCommon/react/runtime/hermes/HermesInstance.cpp index 9d59d46043875c..52f95ca31cd260 100644 --- a/packages/react-native/ReactCommon/react/runtime/hermes/HermesInstance.cpp +++ b/packages/react-native/ReactCommon/react/runtime/hermes/HermesInstance.cpp @@ -139,18 +139,13 @@ std::unique_ptr HermesInstance::createJSRuntime( gcConfig.withAllocInYoung(false).withRevertToYGAtTTI(true); } - int64_t vmExperimentFlags = reactNativeConfig - ? reactNativeConfig->getInt64("ios_hermes:vm_experiment_flags") - : 0; - ::hermes::vm::RuntimeConfig::Builder runtimeConfigBuilder = ::hermes::vm::RuntimeConfig::Builder() .withGCConfig(gcConfig.build()) .withEnableSampleProfiling(true) .withMicrotaskQueue( ReactNativeFeatureFlags::enableBridgelessArchitecture() && - !ReactNativeFeatureFlags::disableEventLoopOnBridgeless()) - .withVMExperimentFlags(vmExperimentFlags); + !ReactNativeFeatureFlags::disableEventLoopOnBridgeless()); if (crashManager) { runtimeConfigBuilder.withCrashMgr(crashManager);