mirror of
https://github.com/classilla/tenfourfox.git
synced 2026-04-21 05:16:53 +00:00
#603: M1347489
This commit is contained in:
+3
-2
@@ -1372,7 +1372,8 @@ class StringSegmentRange
|
||||
{
|
||||
// If malloc() shows up in any profiles from this vector, we can add a new
|
||||
// StackAllocPolicy which stashes a reusable freed-at-gc buffer in the cx.
|
||||
Rooted<StringVector> stack;
|
||||
using StackVector = js::TraceableVector<JSString*, 16>;
|
||||
Rooted<StackVector> stack;
|
||||
RootedLinearString cur;
|
||||
|
||||
bool settle(JSString* str) {
|
||||
@@ -1388,7 +1389,7 @@ class StringSegmentRange
|
||||
|
||||
public:
|
||||
explicit StringSegmentRange(JSContext* cx)
|
||||
: stack(cx, StringVector(cx)), cur(cx)
|
||||
: stack(cx, StackVector(cx)), cur(cx)
|
||||
{}
|
||||
|
||||
MOZ_WARN_UNUSED_RESULT bool init(JSString* str) {
|
||||
|
||||
Reference in New Issue
Block a user