Speed optimizations ARRGHHH DANGER!
This is the same chocolate factory that removed 'destructors' from Java, the garbage collector no longer collects all the garbage, and finalize() is never called and so lots of cleanups never happen because an object never gets told its done with and never gets freed.
All to make the garbage collector a bit faster. Oh boy, if you see them optimize for speed RUN AWAY!
Android is leaking bitmaps
finalize()
{
myBitMap.recycle();
}
Leaking handles, leaking resources, leak networks, leak leak leak.
It even leaks heap memory that the garbage collector doesn't know about, because, for example....
finalize()
{
CacheMat.delete(m_id);
}
...because some heap isn't reference by an object but rather an id and the garbage collector is ignorant of such complex relationships.
My god this is incompetent shit. Undermining the basic smartpointer system that an OS is built on to make a badly designed garbage collector run a little faster, by not collecting all the garbage.
That's not chocolate Google is shovelling. They are a shark-jump company, and if you want to build you work on their turds, be sure to grab an Android 8 tablet, play with apps, like YouTube for a few hours and realize it works. Then try the same tablet upgraded to Android 9 or worse Android 10..... see how it slows down?
This is Google now.
I have to restart activities daily, and reboot tablets weekly. Restarting the activity daily forces the graphics heap to be garbage collected. Rebooting* the tablet weekly, forces the service's heap to be garbage collected. Not using Google crappy incompetent products at all, forces Google's developer department to be garbage collected.
* I can't even exit the service and restart it again on a scheduler, I have to do a full reboot, because since Android 10, that service, even a foreground one, cannot start an activity. They (i.e. morons shoveling shit) suggest using notifications, having already mangled notifications.
So, an example use case, a background service spots a problem on a server that needs fixed immediately, can it pop up a dialog and get them to fix it? NO, because someone in Google decided that would be too distracting. Even if the user chose that software for that purpose, the shit shoveller knows better than the user and developer.
Pardon my angry rant, but I don't apologize for its underlying message. Do not use Google products expecting the same level of competence you recall from the past. This is not that Google.