On loading a first page (google.com) I am seeing two 8.4 MB RegisterFile
memory allocations for a total of 16.8 MB. Unfortunately, we don't have
this much memory to spare, and virtual memory doesn't exist on our
platforms. I'm wondering if there is anyway around this, regardless of
the performance. Is there a way to reduce this to, say, two 512K
allocations? I don't care of JavaScript performance drops 10-fold as a
result.
First 8.4 MB allocation:
WTF::fastMalloc(size_t n=8421376)
KJS::RegisterFile::RegisterFile(size_t capacity=2097152, size_t
maxGlobals=8192)
KJS::Machine::Machine()
KJS::JSGlobalData::JSGlobalData()
KJS::JSGlobalData::threadInstance()
WebCore::JSDOMWindowShell::operator new(unsigned int size=24)
WebCore::ScriptController::initScript()
. . .
Second 8.4 MB allocation:
WTF::fastMalloc(size_t n=8421376)
KJS::RegisterFile::RegisterFile(size_t capacity=2097152, size_t
maxGlobals=8192)
KJS::Machine::Machine()
KJS::JSGlobalData::JSGlobalData()
KJS::JSGlobalData::sharedInstance()
KJS::JSGlobalObject::init(KJS::JSObject* thisValue)
KJS::JSGlobalObject::JSGlobalObject(KJS::JSValue* prototype,
KJS::JSObject* globalThisValue)
WebCore::JSDOMWindowBase::JSDOMWindowBase(KJS::JSObject*,
WebCore::DOMWindow*, WebCore::JSDOMWindowShell*)
WebCore::JSDOMWindow::JSDOMWindow(WebCore::DOMWindow* impl,
WebCore::JSDOMWindowShell* shell)
WebCore::JSDOMWindowShell::JSDOMWindowShell(WebCore::DOMWindow *
domWindow)
WebCore::ScriptController::initScript()
. . .
Thanks.
_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev