Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
4703:2cfb7fb2dce7 | 4970:33df1aeaebbf |
---|---|
1342 } | 1342 } |
1343 #endif | 1343 #endif |
1344 | 1344 |
1345 // Schedule locally. Right now a simple topological sort. | 1345 // Schedule locally. Right now a simple topological sort. |
1346 // Later, do a real latency aware scheduler. | 1346 // Later, do a real latency aware scheduler. |
1347 int *ready_cnt = NEW_RESOURCE_ARRAY(int,C->unique()); | 1347 uint max_idx = C->unique(); |
1348 memset( ready_cnt, -1, C->unique() * sizeof(int) ); | 1348 GrowableArray<int> ready_cnt(max_idx, max_idx, -1); |
1349 visited.Clear(); | 1349 visited.Clear(); |
1350 for (i = 0; i < _num_blocks; i++) { | 1350 for (i = 0; i < _num_blocks; i++) { |
1351 if (!_blocks[i]->schedule_local(this, matcher, ready_cnt, visited)) { | 1351 if (!_blocks[i]->schedule_local(this, matcher, ready_cnt, visited)) { |
1352 if (!C->failure_reason_is(C2Compiler::retry_no_subsuming_loads())) { | 1352 if (!C->failure_reason_is(C2Compiler::retry_no_subsuming_loads())) { |
1353 C->record_method_not_compilable("local schedule failed"); | 1353 C->record_method_not_compilable("local schedule failed"); |