Is it possible to have memory managed by JVMTI Allocate/Deallocate and malloc/free simultaneously in one JVMTI Agent?
I know I can not free memory that was allocated by JVMTI Allocate with free and not use JVMTI Deallocate to free memory that was allocated with malloc.
My guess is that it works because malloc gets memory from the operating system, if necessary and I assume JVMTI Allocate does something similar. From that I conclude that JVMTI Allocate/Deallocate and malloc/free don't interfere with each other.
Background: I have libraries that use malloc/free that I'd like to use inside my JVMTI agent.