OSDN Git Service

Move arrayCopy / identityHashCode from OpenJdkJvm to System.
authorNarayan Kamath <narayan@google.com>
Mon, 16 Nov 2015 12:31:28 +0000 (12:31 +0000)
committerNarayan Kamath <narayan@google.com>
Mon, 16 Nov 2015 12:40:47 +0000 (12:40 +0000)
commit68d8ff4bc1b83c87e9dac0ac0394d1381369e223
tree9c9323e8b5e46478a28504d0719ec817bbf42220
parentff633e2b6473ce9c410ff4b7811b114ec887bbad
Move arrayCopy / identityHashCode from OpenJdkJvm to System.

These functions are only ever called as the JNI implementation of
System.arrayCopy (and never directly from native code) so it's
cleaner to keep them as part of System's native implementation.

Moreover, this change fixes issues in debug mode where taking the
address of a function in a different shared library (potentially
compiled with different compilation flags) generates incorrect
code.

Change-Id: I0da147b9917eb1bb418d3f253fb2bfad46e53e0c
runtime/native/OpenjdkJvm.cc
runtime/native/java_lang_System.cc