You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/kernel/vatManager/transcript.js includes the current crankNumber in each transcript entry. #2400 is trying to change the crank number into a BigInt. The combination causes vatKeeper.js 's addToTranscript to fail, when it attempts to JSON.stringify() the transcript entry. @katelynsills 's fix was to create an augmented stringification function (named JSONstringify, without the .) which has a replacer for the BigInt (rendering them as plain digits, just as a Nat or an integral Number would do).
I think we don't need (or really want) the crankNumber in the transcript, it records data that is outside the scope of an individual vat (the kernel-global crank number counts deliveries to all vats, not just this one).
So the task is to remove crankNumber from the transcript entry, change the two tests that check for it, and then rebase #2400 on top of the result.
The text was updated successfully, but these errors were encountered:
The VatManager is responsible for maintaining a transcript of all deliveries
to their vat worker, so the vat can be reloaded later. These transcript
entries have been including the `crankNumber`: a global counter indicating
how many cranks have been delivered (to all vats, not just the one for which
the transcript entry is being created).
This removes that crankNumber from the transcript:
* each vat should be independent, this global crankNumber is revealing
information about what happens in other vats
* #2400 is changing the type of `crankNumber` to a BigInt, which cannot be
serialized by the simple `JSON.stringify` used in vatKeeper.js
It also removes the now-unnecessary `kernelKeeper` argument from
`makeTranscriptManager`, and changes one test that happened to depend upon
the presence of the crankNumber field.
closes#2428
The VatManager is responsible for maintaining a transcript of all deliveries
to their vat worker, so the vat can be reloaded later. These transcript
entries have been including the `crankNumber`: a global counter indicating
how many cranks have been delivered (to all vats, not just the one for which
the transcript entry is being created).
This removes that crankNumber from the transcript:
* each vat should be independent, this global crankNumber is revealing
information about what happens in other vats
* #2400 is changing the type of `crankNumber` to a BigInt, which cannot be
serialized by the simple `JSON.stringify` used in vatKeeper.js
It also removes the now-unnecessary `kernelKeeper` argument from
`makeTranscriptManager`, and changes one test that happened to depend upon
the presence of the crankNumber field.
closes#2428
src/kernel/vatManager/transcript.js
includes the currentcrankNumber
in each transcript entry. #2400 is trying to change the crank number into a BigInt. The combination causesvatKeeper.js
'saddToTranscript
to fail, when it attempts toJSON.stringify()
the transcript entry. @katelynsills 's fix was to create an augmented stringification function (namedJSONstringify
, without the.
) which has a replacer for the BigInt (rendering them as plain digits, just as aNat
or an integralNumber
would do).I think we don't need (or really want) the
crankNumber
in the transcript, it records data that is outside the scope of an individual vat (the kernel-global crank number counts deliveries to all vats, not just this one).So the task is to remove
crankNumber
from the transcript entry, change the two tests that check for it, and then rebase #2400 on top of the result.The text was updated successfully, but these errors were encountered: