Skip to content

Commit 77cbb2f

Browse files
committed
[MERGE chakra-core#843] Fix bug with handling of OOM while processing jit transfer data
Merge pull request chakra-core#843 from rajatd:installGuards We allocate equivalent type caches and register the current entry point info on the thread context as having equivalent type caches. Each of these operations could throw OOM. The resetting of entrypoint's state in the OOM handling code should be agnostic of the success or failure of the aforementioned operations.
2 parents c6c5437 + 2b60378 commit 77cbb2f

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

lib/Runtime/Base/FunctionBody.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8215,12 +8215,9 @@ namespace Js
82158215
// corresponding fields on the entryPointInfo should be rolled back here.
82168216
this->runtimeTypeRefs = nullptr;
82178217
this->FreePropertyGuards();
8218-
if (this->equivalentTypeCaches != nullptr)
8219-
{
8220-
this->equivalentTypeCacheCount = 0;
8221-
this->equivalentTypeCaches = nullptr;
8222-
this->UnregisterEquivalentTypeCaches();
8223-
}
8218+
this->equivalentTypeCacheCount = 0;
8219+
this->equivalentTypeCaches = nullptr;
8220+
this->UnregisterEquivalentTypeCaches();
82248221

82258222
this->ResetOnNativeCodeInstallFailure();
82268223
}

0 commit comments

Comments
 (0)