Mercurial > hg > truffle
diff src/share/vm/opto/gcm.cpp @ 4970:33df1aeaebbf
Merge with http://hg.openjdk.java.net/hsx/hsx24/hotspot/
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 27 Feb 2012 13:10:13 +0100 |
parents | cf407b7d3d78 |
children | b9a9ed0f8eeb |
line wrap: on
line diff
--- a/src/share/vm/opto/gcm.cpp Fri Feb 24 18:30:42 2012 -0800 +++ b/src/share/vm/opto/gcm.cpp Mon Feb 27 13:10:13 2012 +0100 @@ -1344,8 +1344,8 @@ // Schedule locally. Right now a simple topological sort. // Later, do a real latency aware scheduler. - int *ready_cnt = NEW_RESOURCE_ARRAY(int,C->unique()); - memset( ready_cnt, -1, C->unique() * sizeof(int) ); + uint max_idx = C->unique(); + GrowableArray<int> ready_cnt(max_idx, max_idx, -1); visited.Clear(); for (i = 0; i < _num_blocks; i++) { if (!_blocks[i]->schedule_local(this, matcher, ready_cnt, visited)) {