I am trying to understand how JVM internally implements an array of primitive type, like int []
My question is in two parts:
1 - Does it use a ByteBuffer internally? Where can I find the source code and then perhaps change it according to my needs (to make a modified JVM of my own).
2 - Is there any way to trick javac to not use the build-in implementation of int [] but rather use an implementation provided by a library in lets say classpath -cp? Is this possible and how?
My motivation is to declare this int [] in a memory outside of JVM (using allocateDirect()) and access it outside from a native JNI code. This should avoid the memory copy overhead.
-B