equal
deleted
inserted
replaced
687 size -= size/factor; |
687 size -= size/factor; |
688 } |
688 } |
689 size = align_object_size(size); |
689 size = align_object_size(size); |
690 |
690 |
691 const size_t array_header_size = typeArrayOopDesc::header_size(T_INT); |
691 const size_t array_header_size = typeArrayOopDesc::header_size(T_INT); |
692 if (size >= (size_t)align_object_size(array_header_size)) { |
692 if (size >= align_object_size(array_header_size)) { |
693 size_t length = (size - array_header_size) * (HeapWordSize / sizeof(jint)); |
693 size_t length = (size - array_header_size) * (HeapWordSize / sizeof(jint)); |
694 // allocate uninitialized int array |
694 // allocate uninitialized int array |
695 typeArrayOop t = (typeArrayOop) allocate(size); |
695 typeArrayOop t = (typeArrayOop) allocate(size); |
696 assert(t != NULL, "allocation should succeed"); |
696 assert(t != NULL, "allocation should succeed"); |
697 t->set_mark(markOopDesc::prototype()); |
697 t->set_mark(markOopDesc::prototype()); |