WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
89622
http://bigsword.sinaapp.com/game.html
uses way too much memory
https://bugs.webkit.org/show_bug.cgi?id=89622
Summary
http://bigsword.sinaapp.com/game.html uses way too much memory
Filip Pizlo
Reported
2012-06-20 17:31:56 PDT
We should investigate if there is some bug in JSC that is causing this.
Attachments
Add attachment
proposed patch, testcase, etc.
Filip Pizlo
Comment 1
2012-06-20 17:32:51 PDT
From webkit-dev: "Chrome only needs about 180MB to load the page, but Safari needs almost 450MB and FireFox needs about 380MB. I only can check the memory usage with the developer tool in Chrome. So that's hard to know which statement resumed so huge memory in Safari & FireFox."
Filip Pizlo
Comment 2
2012-06-20 17:33:39 PDT
<
rdar://problem/11714835
>
Simon Fraser (smfr)
Comment 3
2012-06-20 17:37:35 PDT
REGION TYPE VIRTUAL =========== ======= CG image 264K CG shared images 1216K CoreAnimation 12K CoreServices 1376K IOKit 16.0M JS JIT generated code 256.0M JS JIT generated code (reserved) 768.0M reserved VM address space (unallocated) JS VM register file 4096K JS garbage collector 34.6M MALLOC 625.0M see MALLOC ZONE table below MALLOC freed, no zone 13.3M MALLOC guard page 48K MALLOC metadata 540K Memory tag=242 12K Memory tag=251 36K TC malloc 6272K VM_ALLOCATE 16.1M WebCore purgeable data 2132K mapped file 125.4M shared memory 11.3M VIRTUAL ALLOCATION BYTES MALLOC ZONE SIZE COUNT ALLOCATED % FULL =========== ======= ========= ========= ====== JavaScriptCore FastMalloc_0x7fff7d8b8148 534.1M 2863601 307.6M 57% DefaultMallocZone_0x10b033000 41.1M 42615 9643K 22% GFXMallocZone_0x10b038000 36.0M 1599 830K 2% DefaultPurgeableMallocZone_0x14e46f000 9192K 6 9188K 99% DispatchContinuations_0x10b036000 4096K 21 1312 0% CoreGraphics_0x7f882b816600 792K 12011 444K 56% QuartzCore_0x7f882d801800 60K 820 49K 81% x-alloc_0x7f882d839400 12K 16 672 5% =========== ======= ========= ========= ====== TOTAL 625.0M 2920689 327.3M 52%
Simon Fraser (smfr)
Comment 4
2012-06-20 17:38:38 PDT
Zone JavaScriptCore FastMalloc_0x7fff7d8b8148: 2863601 nodes (322546544 bytes) COUNT BYTES AVG CLASS_NAME TYPE BINARY ===== ===== === ========== ==== ====== 2862467 321862128 112.4 non-object 159 488448 3072.0 JSC::FunctionCodeBlock C++ JavaScriptCore 117 3744 32.0 WebCore::Pair C++ WebCore 109 2616 24.0 WebKit::WebString C++ WebKit2 68 56576 832.0 WebCore::CachedImage C++ WebCore ...
Horky
Comment 5
2012-06-20 22:59:12 PDT
Similar phenomena can be found with below website too:
http://jawsjs.com/jawsjs/examples/example12.html
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug