10-22-2011, 08:52 PM
(10-22-2011, 04:22 PM)calais007 Wrote: I think it exist a memory leak issue in UmdIsoReader.java,Try to do the next logical thing: look at how many objects are stored in the fileCache and dirCache. There should be only a few 100s, depending on how many files are stored in your ISO. And each object contains only a few bytes. So how can this explain that your memory usage is increasing of 100s of MB?
There are two containers that named
private HashMap<String, Iso9660File> fileCache = new HashMap<String, Iso9660File>();
and
private HashMap<String, Iso9660Directory> dirCache = new HashMap<String, Iso9660Directory>();
I have reviewed this file and I just see that jpcsp ONLY do add item into container but without remove the added item, in my debugging, every time JPCSP read a file from UMD (e.g, in Game NOW Loading), then memory usage space increased, Java GC never free a reference that still in container. Maybe JPCSP should remove the unused items from container to prevent memory leak.
Sorry for my bad English
If you want to help, please post a complete log file in the corresponding game thread.
Always include a complete log file at INFO level in your reports. Thanks! How to post a log