Skip to content

Commit

Permalink
chore(swingset): move gc.js to gc-and-finalize.js
Browse files Browse the repository at this point in the history
get it out of the way for other kernel GC things to use the filenames
  • Loading branch information
warner committed May 27, 2021
1 parent bba1789 commit 07b9151
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/SwingSet/src/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { xsnap, makeSnapstore } from '@agoric/xsnap';
import { WeakRef, FinalizationRegistry } from './weakref';
import { startSubprocessWorker } from './spawnSubprocessWorker';
import { waitUntilQuiescent } from './waitUntilQuiescent';
import { gcAndFinalize } from './gc';
import { gcAndFinalize } from './gc-and-finalize';
import { insistStorageAPI } from './storageAPI';
import { insistCapData } from './capdata';
import { parseVatSlot } from './parseVatSlots';
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { assert, details as X } from '@agoric/assert';
import { importBundle } from '@agoric/import-bundle';
import { makeMarshal } from '@agoric/marshal';
import { WeakRef, FinalizationRegistry } from '../../weakref';
import { gcAndFinalize } from '../../gc';
import { gcAndFinalize } from '../../gc-and-finalize';
import { waitUntilQuiescent } from '../../waitUntilQuiescent';
import { makeLiveSlots } from '../liveSlots';
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { assert, details as X } from '@agoric/assert';
import { importBundle } from '@agoric/import-bundle';
import { makeMarshal } from '@agoric/marshal';
import { WeakRef, FinalizationRegistry } from '../../weakref';
import { gcAndFinalize } from '../../gc';
import { gcAndFinalize } from '../../gc-and-finalize';
import { arrayEncoderStream, arrayDecoderStream } from '../../worker-protocol';
import {
netstringEncoderStream,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { makeMarshal } from '@agoric/marshal';
import '../../types';
// grumble... waitUntilQuiescent is exported and closes over ambient authority
import { waitUntilQuiescent } from '../../waitUntilQuiescent';
import { gcAndFinalize } from '../../gc';
import { gcAndFinalize } from '../../gc-and-finalize';
import { insistVatDeliveryObject, insistVatSyscallResult } from '../../message';

import { makeLiveSlots } from '../liveSlots';
Expand Down
2 changes: 1 addition & 1 deletion packages/SwingSet/test/liveslots-helpers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { WeakRef, FinalizationRegistry } from '../src/weakref';
import { waitUntilQuiescent } from '../src/waitUntilQuiescent';
import { gcAndFinalize } from '../src/gc';
import { gcAndFinalize } from '../src/gc-and-finalize';
import { makeLiveSlots } from '../src/kernel/liveSlots';

export function buildSyscall() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { test } from '../tools/prepare-test-env-ava';
import * as childProcess from 'child_process';
import * as os from 'os';
import { xsnap } from '@agoric/xsnap';
import { gcAndFinalize } from '../src/gc';
import { gcAndFinalize } from '../src/gc-and-finalize';

test(`have gc() on Node.js`, async t => {
t.is(typeof gc, 'function', 'environment is missing top-level gc()');
Expand Down
2 changes: 1 addition & 1 deletion packages/SwingSet/test/test-liveslots.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Far } from '@agoric/marshal';
import { makePromiseKit } from '@agoric/promise-kit';
import { assert, details as X } from '@agoric/assert';
import { waitUntilQuiescent } from '../src/waitUntilQuiescent';
import { gcAndFinalize } from '../src/gc';
import { gcAndFinalize } from '../src/gc-and-finalize';
import { makeLiveSlots } from '../src/kernel/liveSlots';
import { buildSyscall, makeDispatch } from './liveslots-helpers';
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { test } from '../../tools/prepare-test-env-ava';
// eslint-disable-next-line import/order
import { Far } from '@agoric/marshal';

import { gcAndFinalize } from '../../src/gc';
import { gcAndFinalize } from '../../src/gc-and-finalize';
import { makeFakeVirtualObjectManager } from '../../tools/fakeVirtualObjectManager';

// empty object, used as makeWeakStore() key
Expand Down

0 comments on commit 07b9151

Please sign in to comment.