Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp @ 9060:cc32ccaaf47f
8003310: Enable -Wunused-function when compiling with gcc
Summary: Add the -Wunused-function flag and remove a number of unused functions.
Reviewed-by: dholmes, coleenp, kvn
author | mikael |
---|---|
date | Thu, 04 Apr 2013 10:01:26 -0700 |
parents | 27714220e50e |
children | 9aa8d8037ee3 |
comparison
equal
deleted
inserted
replaced
9059:17bf4d428955 | 9060:cc32ccaaf47f |
---|---|
1357 _short_lived_surv_rate_group->print_surv_rate_summary(); | 1357 _short_lived_surv_rate_group->print_surv_rate_summary(); |
1358 // add this call for any other surv rate groups | 1358 // add this call for any other surv rate groups |
1359 #endif // PRODUCT | 1359 #endif // PRODUCT |
1360 } | 1360 } |
1361 | 1361 |
1362 #ifndef PRODUCT | |
1363 // for debugging, bit of a hack... | |
1364 static char* | |
1365 region_num_to_mbs(int length) { | |
1366 static char buffer[64]; | |
1367 double bytes = (double) (length * HeapRegion::GrainBytes); | |
1368 double mbs = bytes / (double) (1024 * 1024); | |
1369 sprintf(buffer, "%7.2lfMB", mbs); | |
1370 return buffer; | |
1371 } | |
1372 #endif // PRODUCT | |
1373 | |
1374 uint G1CollectorPolicy::max_regions(int purpose) { | 1362 uint G1CollectorPolicy::max_regions(int purpose) { |
1375 switch (purpose) { | 1363 switch (purpose) { |
1376 case GCAllocForSurvived: | 1364 case GCAllocForSurvived: |
1377 return _max_survivor_regions; | 1365 return _max_survivor_regions; |
1378 case GCAllocForTenured: | 1366 case GCAllocForTenured: |