Skip to content

Commit ea32e97

Browse files
committed
[MERGE chakra-core#2491 @MikeHolman] numeric property bv may be null in UpdateJITState
Merge pull request chakra-core#2491 from MikeHolman:numpropfix Top level pointers in parameter list default to [ref] type, which cannot be null. In this case, we should allow argument to be null, so it should be a [unique] pointer.
2 parents 6c17206 + 17d7d4c commit ea32e97

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/JITClient/JITManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ JITManager::SetWellKnownHostTypeId(
433433
HRESULT
434434
JITManager::UpdatePropertyRecordMap(
435435
__in PTHREADCONTEXT_HANDLE threadContextInfoAddress,
436-
__in BVSparseNodeIDL * updatedPropsBVHead)
436+
__in_opt BVSparseNodeIDL * updatedPropsBVHead)
437437
{
438438
Assert(IsOOPJITEnabled());
439439

lib/JITClient/JITManager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class JITManager
4040

4141
HRESULT UpdatePropertyRecordMap(
4242
__in PTHREADCONTEXT_HANDLE threadContextInfoAddress,
43-
__in BVSparseNodeIDL * updatedPropsBVHead);
43+
__in_opt BVSparseNodeIDL * updatedPropsBVHead);
4444

4545
HRESULT NewInterpreterThunkBlock(
4646
__in PSCRIPTCONTEXT_HANDLE scriptContextInfoAddress,
@@ -145,7 +145,7 @@ class JITManager
145145

146146
HRESULT UpdatePropertyRecordMap(
147147
__in PTHREADCONTEXT_HANDLE threadContextInfoAddress,
148-
__in BVSparseNodeIDL * updatedPropsBVHead)
148+
__in_opt BVSparseNodeIDL * updatedPropsBVHead)
149149
{ Assert(false); return E_FAIL; }
150150

151151
HRESULT AddDOMFastPathHelper(

lib/JITIDL/ChakraJIT.idl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ interface IChakraJIT
2626
HRESULT UpdatePropertyRecordMap(
2727
[in] handle_t binding,
2828
[in] PTHREADCONTEXT_HANDLE threadContextInfoAddress,
29-
[in] BVSparseNodeIDL * updatedPropsBVHead);
29+
[in, unique] BVSparseNodeIDL * updatedPropsBVHead);
3030

3131
HRESULT AddDOMFastPathHelper(
3232
[in] handle_t binding,

lib/JITServer/JITServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ HRESULT
223223
ServerUpdatePropertyRecordMap(
224224
/* [in] */ handle_t binding,
225225
/* [in] */ __RPC__in PTHREADCONTEXT_HANDLE threadContextInfoAddress,
226-
/* [in] */ __RPC__in BVSparseNodeIDL * updatedPropsBVHead)
226+
/* [in] */ __RPC__in_opt BVSparseNodeIDL * updatedPropsBVHead)
227227
{
228228
ServerThreadContext * threadContextInfo = (ServerThreadContext*)DecodePointer(threadContextInfoAddress);
229229

0 commit comments

Comments
 (0)