• Mike Kaganski's avatar
    tdf#67421: Prevent unloading objects due to cache full · b717bda1
    Mike Kaganski yazdı
    When an object is added to OLE objects cache, when cache is full,
    old objects are tried to be unloaded. This triggers notifications
    that cause all loaded objects to become active, and to be added to
    cache (moved to front).
    
    As the new object already was added to front of the cache, later
    activity pushes it to back, until it is the last object in cache.
    The cache in this process is overfilled, so each next refresh tries
    to unload current last OLE object. So, in the end, this effectively
    unloads all cached OLE objects.
    
    This patch prevents this by first unloading last object, and then
    adding new object to front of cache.
    
    Also, removed needless creation of reference (makes at least 200
    function calls for no reason).
    
    Change-Id: Ia903f4df101971df1b0b0148320fc8e45ac1e79c
    Reviewed-on: https://gerrit.libreoffice.org/15772Tested-by: 's avatarJenkins <ci@libreoffice.org>
    Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
    b717bda1
Adı
Son kayıt (commit)
Son güncelleme
..
qa/embedding Loading commit data...
source Loading commit data...
test Loading commit data...
util Loading commit data...
Library_embobj.mk Loading commit data...
Library_emboleobj.mk Loading commit data...
Makefile Loading commit data...
Module_embeddedobj.mk Loading commit data...
README Loading commit data...