Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit 96f1f73

Browse files
MikeHolmanchakrabot
authored andcommitted
deps: update ChakraCore to chakra-core/ChakraCore@c806128547
[1.8>1.9] [MERGE #4684 @MikeHolman] fix assert in JIT data serialization Merge pull request #4684 from MikeHolman:serializedassert We may have multiple codegen calls for same entrypoint, so replace the old JIT data if this happens OS: 15845157 Reviewed-By: chakrabot <chakrabot@users.noreply.github.com>
1 parent eb818db commit 96f1f73

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

deps/chakrashim/core/lib/Runtime/Base/FunctionBody.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,12 @@ namespace Js
437437
public:
438438
void SetSerializedRpcData(const unsigned char* data, size_t size)
439439
{
440-
Assert(serializedRpcData == nullptr);
440+
if (this->serializedRpcData != nullptr)
441+
{
442+
// We may have multiple codegens happen for same entrypoint
443+
const unsigned char* rpcData = this->serializedRpcData;
444+
HeapDeleteArray(this->serializedRpcDataSize, rpcData);
445+
}
441446
serializedRpcData = data;
442447
serializedRpcDataSize = size;
443448
}

0 commit comments

Comments
 (0)