Merge change 24402

* changes:
  Use GetByteArrayRegion instead of GetByteArrayElements.