|
Lines 1-3
a/WebCore/ChangeLog_sec1
|
|
|
1 |
2009-10-26 Holger Hans Peter Freyther <zecke@selfish.org> |
| 2 |
|
| 3 |
Reviewed by NOBODY (OOPS!). |
| 4 |
|
| 5 |
Document a feature of the m_liveDecodedResources list. |
| 6 |
https://bugs.webkit.org/show_bug.cgi?id=30209 |
| 7 |
|
| 8 |
The code made the assumption that the list is sorted by |
| 9 |
the m_lastDecodedAccessTime property of the CachedResource. |
| 10 |
The above is not true when CachedResource::setDecodedSize |
| 11 |
is called and the item is inserted the first time. In this |
| 12 |
case the m_lastDecodedAccessTime is still zero and the |
| 13 |
m_liveDecodedResources list becomes unsorted. |
| 14 |
|
| 15 |
It is impossible that Cache::pruneLiveResources will |
| 16 |
stop to process the list too early due this feature and |
| 17 |
the alternatives of updating m_lastDecodedAccessTime in |
| 18 |
CachedResource::setDecodedSize or changing the insert |
| 19 |
to search the right position have a negative impact on |
| 20 |
performance. The best solution for now is to document |
| 21 |
this feature. |
| 22 |
|
| 23 |
* loader/Cache.cpp: |
| 24 |
(WebCore::Cache::pruneLiveResources): |
| 25 |
* loader/CachedResource.cpp: |
| 26 |
(WebCore::CachedResource::setDecodedSize): |
| 27 |
|
| 1 |
2009-10-25 Anton Muhin <antonm@chromium.org> |
28 |
2009-10-25 Anton Muhin <antonm@chromium.org> |
| 2 |
|
29 |
|
| 3 |
Reviewed by Adam Barth. |
30 |
Reviewed by Adam Barth. |