< prev index next >
src/hotspot/share/opto/parse3.cpp
Print this page
*** 414,424 ****
// If that happens, use the fast 1-d creator a constant number of times.
const int expand_limit = MIN2((int)MultiArrayExpandLimit, 100);
int expand_count = 1; // count of allocations in the expansion
int expand_fanout = 1; // running total fanout
for (j = 0; j < ndimensions-1; j++) {
! jint dim_con = find_int_con(length[j], -1);
expand_fanout *= dim_con;
expand_count += expand_fanout; // count the level-J sub-arrays
if (dim_con <= 0
|| dim_con > expand_limit
|| expand_count > expand_limit) {
--- 414,424 ----
// If that happens, use the fast 1-d creator a constant number of times.
const int expand_limit = MIN2((int)MultiArrayExpandLimit, 100);
int expand_count = 1; // count of allocations in the expansion
int expand_fanout = 1; // running total fanout
for (j = 0; j < ndimensions-1; j++) {
! int dim_con = find_int_con(length[j], -1);
expand_fanout *= dim_con;
expand_count += expand_fanout; // count the level-J sub-arrays
if (dim_con <= 0
|| dim_con > expand_limit
|| expand_count > expand_limit) {
< prev index next >