I canβt answer your question, but can you clarify what your problem is?
In other words, can you tell us if this ...
- In the JNI layer, and not in the scope of the JVM object?
- Using free memory?
- Sign / overwrite buffer?
- Other memory corruption?
I recently had to debug Java / C, which had problems (after 30+ minutes in its launch), which, as it turned out, used memory after it was free. I tried using dmalloc, my own memory leak library, Valgrind, and no one worked as I needed.
In the end, I created a simple set of wrappers around free, malloc, calloc, realloc, which simply printed addresses and memory sizes into a file. After it was interrupted (inside GDB), I could return on time and find out when the memory was free and where the links were not deleted.
IF your problem is in C / C ++ and you can catch a bug in the debugger, this may work for you. Yes, this is tedious, but perhaps no worse than sifting through a megabyte of Valgrind output.
Hope this helps and good luck.
NVRAM
source share