Changeset 81991 in webkit
- Timestamp:
- Mar 25, 2011, 2:21:17 PM (14 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r81990 r81991 616 616 * rendering/RenderTreeAsText.cpp: 617 617 (WebCore::quoteAndEscapeNonPrintables): 618 619 2011-03-24 Stephanie Lewis <slewis@apple.com> 620 621 Reviewed by Geoff Garen. 622 623 <rdar://problem/9146716> REGRESSION: ~10 MB increase in memory under CachedScripts 624 Add back a call to destroy decoded data after access. Keep the SourceProviderCache 625 around as long as their are still clients to use it. 626 627 No new tests because there is no change in behavior. Current tests pass. 628 629 * loader/cache/CachedScript.cpp: 630 (WebCore::CachedScript::script): 631 (WebCore::CachedScript::destroyDecodedData): 618 632 619 633 2011-03-24 Stephanie Lewis <slewis@apple.com> -
trunk/Source/WebCore/loader/cache/CachedScript.cpp
r78297 r81991 89 89 setDecodedSize(m_script.length() * sizeof(UChar)); 90 90 } 91 m_decodedDataDeletionTimer.startOneShot(0); 92 91 93 return m_script; 92 94 } … … 126 128 unsigned extraSize = 0; 127 129 #if USE(JSC) 128 if (m_sourceProviderCache )130 if (m_sourceProviderCache && m_clients.isEmpty()) 129 131 m_sourceProviderCache->clear(); 130 132
Note:
See TracChangeset
for help on using the changeset viewer.