You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pull request: Fix MRU eviction bugs that render the wrong contents for images
Edit
------
Introduce the concept of in use entries.
Entries that are in use are immune from eviction. This concept is needed
to protect the bits that are currently being referenced by a UIImage/CGImageRef
from being overwritten.
Note also that inUse is a refcounted concept since multiple FICImageTableEntry's
can be allocated against the same entityUUID/bits in the backing file.
A side effect of this change is that the imageFormat's maximumCount is no
longer a hard limit since it is possible that all maximumCount entries could
be in use.
if ([self_maximumCount] > [_imageFormat maximumCount]) {
170
+
NSString *message = [NSStringstringWithFormat:@"*** FIC Warning: growing desired maximumCount (%d) for format %@ to fill a chunk (%d)", [_imageFormat maximumCount], [_imageFormat name], [self_maximumCount]];
NSString *message = [NSStringstringWithFormat:@"FICImageTable - unable to evict entry from table '%@' to make room. New index %d, desired max %d", [_imageFormat name], index, [self_maximumCount]];
0 commit comments