зеркало из https://github.com/mozilla/gecko-dev.git
Call JS_GC instead of js_GC within JS_MaybeGC. Thanks to
A. Hodgkinson <ahodgkin@acorn.co.uk> for finding this (and to chouck for checking it in to js/ref/jsapi.c.)
This commit is contained in:
Родитель
16ebcb630d
Коммит
43f5474e6a
|
@ -814,7 +814,7 @@ JS_MaybeGC(JSContext *cx)
|
|||
bytes = rt->gcBytes;
|
||||
lastBytes = rt->gcLastBytes;
|
||||
if (bytes > 8192 && bytes > lastBytes + lastBytes / 2)
|
||||
js_GC(cx);
|
||||
JS_GC(cx);
|
||||
}
|
||||
|
||||
JS_PUBLIC_API(JSGCCallback)
|
||||
|
|
Загрузка…
Ссылка в новой задаче