We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8f744c commit 5657ea6Copy full SHA for 5657ea6
js/src/gc/GCMarker.h
@@ -455,7 +455,7 @@ class GCMarker : public JSTracer {
455
456
457
458
- MainThreadData<bool> linearWeakMarkingDisabled_;
+ MainThreadOrGCTaskData<bool> linearWeakMarkingDisabled_;
459
460
461
size_t markCount;
js/src/jit-test/tests/gc/bug-1593975.js
@@ -0,0 +1,20 @@
1
+function runtest(func) {
2
+ func();
3
+}
4
+const g1 = newGlobal({
5
+ newCompartment: true
6
+});
7
+enqueueMark("enter-weak-marking-mode");
8
+function transplantMarking() {
9
+ const vals = {};
10
+ vals.map = new WeakMap();
11
+ enqueueMark(vals.map);
12
+ enqueueMark("yield");
13
+ enqueueMark("enter-weak-marking-mode");
14
15
+runtest(transplantMarking);
16
+egc = 60;
17
+gcslice(egc * 100);
18
+try {
19
+x();
20
+} catch(e) {}
0 commit comments