Open xingxia753 opened 4 years ago
if we enable IdentityScope, GreenDAO can use hashMap to cache some entity like map.put(key, new WeakReference<T>(entity)); the value can be removed after GC, but the key-value pair can't be.
map.put(key, new WeakReference<T>(entity));
Is there a risk of OOM?
if we enable IdentityScope, GreenDAO can use hashMap to cache some entity like
map.put(key, new WeakReference<T>(entity));
the value can be removed after GC, but the key-value pair can't be.Is there a risk of OOM?