Skip to content

Commit

Permalink
feat: include GC calls in transcript
Browse files Browse the repository at this point in the history
Closes #5564
  • Loading branch information
FUDCo committed Jun 23, 2022
1 parent 3eb1eb0 commit 90b297b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 99 deletions.
10 changes: 0 additions & 10 deletions packages/SwingSet/src/kernel/vat-loader/transcript.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,7 @@ export function makeTranscriptManager(
};
}

const gcSyscalls = new Set(['dropImports', 'retireImports', 'retireExports']);

function addSyscall(d, response) {
const type = d[0];
if (gcSyscalls.has(type)) {
return;
}
if (currentEntry) {
currentEntry.syscalls.push({ d, response });
}
Expand Down Expand Up @@ -65,10 +59,6 @@ export function makeTranscriptManager(
let replayError;

function simulateSyscall(newSyscall) {
const type = newSyscall[0];
if (gcSyscalls.has(type)) {
return ['ok', undefined];
}
const s = playbackSyscalls.shift();
const newReplayError = compareSyscalls(vatID, s.d, newSyscall);
if (newReplayError) {
Expand Down
89 changes: 0 additions & 89 deletions packages/SwingSet/test/test-gc-transcript.js

This file was deleted.

0 comments on commit 90b297b

Please sign in to comment.