1. A method for executing native code in a distributed Java Virtual Machine (JVM), the method comprising: receiving, in a first thread, a first native code-generated call to a second thread, the first call including a first array write instruction, the first thread executing in a remote execution container with respect to the second thread; in response to receipt of the first native code-generated call, storing the first native code-generated call in an instruction cache; receiving, in the first thread, a second native code-generated call to the second thread, the second native code-generated call including a first function call, that is not an array write instruction, from a first calling function; and in response to receipt of the second native code-generated call, bundling the first and second native code-generated calls and transmitting the bundled first and second native code-generated calls to the second thread.