summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/sharedbuf/gc-two-views.js
blob: 6a16004b071780076d289d8dbb920382ae43d351 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| skip-if: !this.SharedArrayBuffer

// Test tracing of two views of a SharedArrayBuffer. Uses a different path.

function f() {
    var x = new SharedArrayBuffer(0x1000);
    var y = new Int32Array(x);
    var z = new Int8Array(x);
    gc();
}

f();