comparison src/share/vm/utilities/copy.cpp @ 1603:d93949c5bdcc

6730276: JDI_REGRESSION tests fail with "Error: count must be non-zero" error on x86 Summary: Modify assembler code to check for 0 count for all copy routines. Reviewed-by: never, ysr, jcoomes
author kvn
date Thu, 10 Jun 2010 13:04:20 -0700
parents c18cbe5936b8
children f95d63e2154a
comparison
equal deleted inserted replaced
1602:136b78722a08 1603:d93949c5bdcc
46 Copy::conjoint_jints_atomic((jint*) src, (jint*) dst, size / sizeof(jint)); 46 Copy::conjoint_jints_atomic((jint*) src, (jint*) dst, size / sizeof(jint));
47 } else if (bits % sizeof(jshort) == 0) { 47 } else if (bits % sizeof(jshort) == 0) {
48 Copy::conjoint_jshorts_atomic((jshort*) src, (jshort*) dst, size / sizeof(jshort)); 48 Copy::conjoint_jshorts_atomic((jshort*) src, (jshort*) dst, size / sizeof(jshort));
49 } else { 49 } else {
50 // Not aligned, so no need to be atomic. 50 // Not aligned, so no need to be atomic.
51 Copy::conjoint_bytes((void*) src, (void*) dst, size); 51 Copy::conjoint_jbytes((void*) src, (void*) dst, size);
52 } 52 }
53 } 53 }
54 54
55 55
56 // Fill bytes; larger units are filled atomically if everything is aligned. 56 // Fill bytes; larger units are filled atomically if everything is aligned.