Mercurial > hg > truffle
comparison src/share/vm/oops/typeArrayKlass.cpp @ 3774:c9ca3f51cf41
6994322: Remove the is_tlab and is_noref / is_large_noref parameters from the CollectedHeap
Summary: Remove two unused parameters from the mem_allocate() method and update its uses accordingly.
Reviewed-by: stefank, johnc
author | tonyp |
---|---|
date | Thu, 16 Jun 2011 15:51:57 -0400 |
parents | e5383553fd4e |
children | a92cdbac8b9e |
comparison
equal
deleted
inserted
replaced
3773:5130fa1b24f1 | 3774:c9ca3f51cf41 |
---|---|
82 if (length <= max_length()) { | 82 if (length <= max_length()) { |
83 size_t size = typeArrayOopDesc::object_size(layout_helper(), length); | 83 size_t size = typeArrayOopDesc::object_size(layout_helper(), length); |
84 KlassHandle h_k(THREAD, as_klassOop()); | 84 KlassHandle h_k(THREAD, as_klassOop()); |
85 typeArrayOop t; | 85 typeArrayOop t; |
86 CollectedHeap* ch = Universe::heap(); | 86 CollectedHeap* ch = Universe::heap(); |
87 if (size < ch->large_typearray_limit()) { | 87 t = (typeArrayOop)CollectedHeap::array_allocate(h_k, (int)size, length, CHECK_NULL); |
88 t = (typeArrayOop)CollectedHeap::array_allocate(h_k, (int)size, length, CHECK_NULL); | |
89 } else { | |
90 t = (typeArrayOop)CollectedHeap::large_typearray_allocate(h_k, (int)size, length, CHECK_NULL); | |
91 } | |
92 assert(t->is_parsable(), "Don't publish unless parsable"); | 88 assert(t->is_parsable(), "Don't publish unless parsable"); |
93 return t; | 89 return t; |
94 } else { | 90 } else { |
95 report_java_out_of_memory("Requested array size exceeds VM limit"); | 91 report_java_out_of_memory("Requested array size exceeds VM limit"); |
96 THROW_OOP_0(Universe::out_of_memory_error_array_size()); | 92 THROW_OOP_0(Universe::out_of_memory_error_array_size()); |