< prev index next >

src/share/vm/oops/typeArrayKlass.cpp

Print this page

        

*** 146,155 **** --- 146,158 ---- } // Check zero copy if (length == 0) return; + s = arrayOop(oopDesc::bs()->read_barrier(s)); + d = arrayOop(oopDesc::bs()->write_barrier(d)); + // This is an attempt to make the copy_array fast. int l2es = log2_element_size(); int ihs = array_header_in_bytes() / wordSize; char* src = (char*) ((oop*)s + ihs) + ((size_t)src_pos << l2es); char* dst = (char*) ((oop*)d + ihs) + ((size_t)dst_pos << l2es);
< prev index next >