diff --git a/packages/react-native/ReactCommon/react/runtime/hermes/HermesInstance.cpp b/packages/react-native/ReactCommon/react/runtime/hermes/HermesInstance.cpp index d6cd5471d773..f5c376c0e19f 100644 --- a/packages/react-native/ReactCommon/react/runtime/hermes/HermesInstance.cpp +++ b/packages/react-native/ReactCommon/react/runtime/hermes/HermesInstance.cpp @@ -131,12 +131,10 @@ std::unique_ptr HermesInstance::createJSRuntime( auto gcConfig = ::hermes::vm::GCConfig::Builder() // Default to 3GB - .withInitHeapSize(150ll * 1024 * 1024) - .withShouldReleaseUnused(::hermes::vm::kReleaseUnusedNone) .withMaxHeapSize(3072 << 20) .withName("RNBridgeless"); - if (true || allocInOldGenBeforeTTI) { + if (allocInOldGenBeforeTTI) { // For the next two arguments: avoid GC before TTI // by initializing the runtime to allocate directly // in the old generation, but revert to normal