1396 jio_fprintf(defaultStream::error_stream(), |
1396 jio_fprintf(defaultStream::error_stream(), |
1397 "error: ObjectAlignmentInBytes=%d must be less than page size %d\n", |
1397 "error: ObjectAlignmentInBytes=%d must be less than page size %d\n", |
1398 (int)ObjectAlignmentInBytes, os::vm_page_size()); |
1398 (int)ObjectAlignmentInBytes, os::vm_page_size()); |
1399 return false; |
1399 return false; |
1400 } |
1400 } |
|
1401 if(SurvivorAlignmentInBytes == 0) { |
|
1402 SurvivorAlignmentInBytes = ObjectAlignmentInBytes; |
|
1403 } else { |
|
1404 if (!is_power_of_2(SurvivorAlignmentInBytes)) { |
|
1405 jio_fprintf(defaultStream::error_stream(), |
|
1406 "error: SurvivorAlignmentInBytes=%d must be power of 2\n", |
|
1407 (int)SurvivorAlignmentInBytes); |
|
1408 return false; |
|
1409 } |
|
1410 if (SurvivorAlignmentInBytes < ObjectAlignmentInBytes) { |
|
1411 jio_fprintf(defaultStream::error_stream(), |
|
1412 "error: SurvivorAlignmentInBytes=%d must be greater than ObjectAlignmentInBytes=%d \n", |
|
1413 (int)SurvivorAlignmentInBytes, (int)ObjectAlignmentInBytes); |
|
1414 return false; |
|
1415 } |
|
1416 } |
1401 return true; |
1417 return true; |
1402 } |
1418 } |
1403 |
1419 |
1404 size_t Arguments::max_heap_for_compressed_oops() { |
1420 size_t Arguments::max_heap_for_compressed_oops() { |
1405 // Avoid sign flip. |
1421 // Avoid sign flip. |