Skip to content

Commit

Permalink
Bug 1593975 - update linearWeakMarkingDisabled_ to MainThreadOrGCTask…
Browse files Browse the repository at this point in the history
…Data. r=jonco

Differential Revision: https://phabricator.services.mozilla.com/D51810

UltraBlame original commit: 6922ef47c25721aa5e7bc2a7bed57161a8b0f21e
  • Loading branch information
marco-c committed Nov 7, 2019
1 parent c1ad4ac commit b2c6f1f
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/gc/GCMarker.h
Original file line number Diff line number Diff line change
Expand Up @@ -2845,7 +2845,7 @@ GC
.
*
/
MainThreadData
MainThreadOrGCTaskData
<
bool
>
Expand Down
113 changes: 113 additions & 0 deletions js/src/jit-test/tests/gc/bug-1593975.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
function
runtest
(
func
)
{
func
(
)
;
}
const
g1
=
newGlobal
(
{
newCompartment
:
true
}
)
;
enqueueMark
(
"
enter
-
weak
-
marking
-
mode
"
)
;
function
transplantMarking
(
)
{
const
vals
=
{
}
;
vals
.
map
=
new
WeakMap
(
)
;
enqueueMark
(
vals
.
map
)
;
enqueueMark
(
"
yield
"
)
;
enqueueMark
(
"
enter
-
weak
-
marking
-
mode
"
)
;
}
runtest
(
transplantMarking
)
;
egc
=
60
;
gcslice
(
egc
*
100
)
;
try
{
x
(
)
;
}
catch
(
e
)
{
}

0 comments on commit b2c6f1f

Please sign in to comment.