greenrobot / greenDAO

greenDAO is a light & fast ORM solution for Android that maps objects to SQLite databases.
http://greenrobot.org/greendao/
12.63k stars 2.89k forks source link

Will IdentityScope cause OOM? #1057

Open xingxia753 opened 4 years ago

xingxia753 commented 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.

Is there a risk of OOM?