Closed Bl3nd closed 8 months ago
always forcing System.gc()
may not be a good idea especially for a lot of RAM and slower processor single-core speed. maybe hide it behind an (enabled by default) option?
anyway, there's always -XX:+DisableExplicitGC
I totally understand the System.gc()
concerns you have, I will try other ideas I can come up with.
Closed PR to further address memory issues when deleting a resource (for now). Even when deleting and clearing using the above code (without gc) it keeps the deleted ResourceContainer
in memory and adds new instances using either reload or add.
I pushed an update to help with this - https://github.com/Konloch/bytecode-viewer/commit/aea66fea92aa07a592253531662c770fe2708069 - this should resolve the reference issue
Clear resource classes, class bytes, and files after deleting directory from resource list to clear memory. In response to issue #482.