hotspot/src/share/vm/utilities/copy.cpp
changeset 5883 8dc4bdc132d5
parent 5547 f4b087cbb361
child 7397 5b173b4ca846
equal deleted inserted replaced
5882:6b2aecc4f7d8 5883:8dc4bdc132d5
    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.