What I want to do is to shift a large array of bytes to 10 higher indexes. I know I can easily do it this way:
byte [] bArray = new byte [1000000];
System.arraycopy(bArray, 0 , bArray, 10, 900000 );
however, in our specific code we will be doing that every time we call a method, and that method is gonna be called a million times in our code. That makes us worry about memory leak as that is going go put lots of work on JVM to reallocate the heap over and over again in high frequency.