mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 783540 - add missing STRINGVECTOR case in AutoGCRooter::trace (r=bhackett)
This commit is contained in:
parent
7a8bcb7e5b
commit
eac38cd145
5
js/src/jit-test/tests/basic/testBug783540.js
Normal file
5
js/src/jit-test/tests/basic/testBug783540.js
Normal file
@ -0,0 +1,5 @@
|
||||
gczeal(2, 2)
|
||||
var stringA = "abcdef";
|
||||
var stringB = "ghijk";
|
||||
var stringC = "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz";
|
||||
(stringA + stringB + stringC).replace('abc', 'AA')
|
@ -2341,6 +2341,12 @@ AutoGCRooter::trace(JSTracer *trc)
|
||||
return;
|
||||
}
|
||||
|
||||
case STRINGVECTOR: {
|
||||
AutoStringVector::VectorImpl &vector = static_cast<AutoStringVector *>(this)->vector;
|
||||
MarkStringRootRange(trc, vector.length(), vector.begin(), "js::AutoStringVector.vector");
|
||||
return;
|
||||
}
|
||||
|
||||
case NAMEVECTOR: {
|
||||
AutoNameVector::VectorImpl &vector = static_cast<AutoNameVector *>(this)->vector;
|
||||
MarkStringRootRange(trc, vector.length(), vector.begin(), "js::AutoNameVector.vector");
|
||||
|
Loading…
Reference in New Issue
Block a user