comparison src/share/vm/oops/typeArrayKlass.hpp @ 3961:a92cdbac8b9e

7081933: Use zeroing elimination optimization for large array Summary: Don't zero new typeArray during runtime call if the allocation is followed by arraycopy into it. Reviewed-by: twisti
author kvn
date Mon, 26 Sep 2011 10:24:05 -0700
parents f95d63e2154a
children da91efe96a93
comparison
equal deleted inserted replaced
3960:f08d439fab8c 3961:a92cdbac8b9e
54 int klass_oop_size() const { return object_size(); } 54 int klass_oop_size() const { return object_size(); }
55 55
56 bool compute_is_subtype_of(klassOop k); 56 bool compute_is_subtype_of(klassOop k);
57 57
58 // Allocation 58 // Allocation
59 typeArrayOop allocate(int length, TRAPS); 59 typeArrayOop allocate_common(int length, bool do_zero, TRAPS);
60 typeArrayOop allocate(int length, TRAPS) { return allocate_common(length, true, THREAD); }
60 typeArrayOop allocate_permanent(int length, TRAPS); // used for class file structures 61 typeArrayOop allocate_permanent(int length, TRAPS); // used for class file structures
61 oop multi_allocate(int rank, jint* sizes, TRAPS); 62 oop multi_allocate(int rank, jint* sizes, TRAPS);
62 63
63 // Copying 64 // Copying
64 void copy_array(arrayOop s, int src_pos, arrayOop d, int dst_pos, int length, TRAPS); 65 void copy_array(arrayOop s, int src_pos, arrayOop d, int dst_pos, int length, TRAPS);