[Webkit-unassigned] [Bug 70805] [EFL] Make cache flush when max size of cache has been changed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 27 23:56:49 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=70805





--- Comment #7 from Tomasz Morawski <t.morawski at samsung.com>  2011-10-27 23:56:48 PST ---
(In reply to comment #6)
For example we have a cache that currently store 20MB of data
* the tileUnusedCache->memory.used = 20MB
and max value is set 40MB 
tileUnusedCache->memory.max= 40MB

Now, a user calls:
ewk_tile_unused_cache_max_set(tuc, 10MB)
the cache after calling of this function should use only 10MB. Due to that 
I call ewk_tile_unused_cache_auto_flush to release some memory.

The value of used and max will be:
> ewk_tile_unused_cache_auto_flush has an early exit:
if (tileUnusedCache->memory.used(20MB) <= tileUnusedCache->memory.max(10MB))
    return;

the "if" condition is false in that situation, so the early exit it not occured in this case and the memory form cache will be released.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list