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

Commit

Permalink
deps: update ChakraCore to chakra-core/ChakraCore@c806128547
Browse files Browse the repository at this point in the history
[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 <[email protected]>
  • Loading branch information
MikeHolman authored and kfarnung committed Mar 7, 2018
1 parent 808e778 commit 0dad5d2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion deps/chakrashim/core/lib/Runtime/Base/FunctionBody.h
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,12 @@ namespace Js
public:
void SetSerializedRpcData(const unsigned char* data, size_t size)
{
Assert(serializedRpcData == nullptr);
if (this->serializedRpcData != nullptr)
{
// We may have multiple codegens happen for same entrypoint
const unsigned char* rpcData = this->serializedRpcData;
HeapDeleteArray(this->serializedRpcDataSize, rpcData);
}
serializedRpcData = data;
serializedRpcDataSize = size;
}
Expand Down

0 comments on commit 0dad5d2

Please sign in to comment.