JNI create tmp buffer on heap instead of stack (debugging...)