Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/arguments.cpp @ 1871:75b0735b4d04
Merge
author | acorn |
---|---|
date | Wed, 13 Oct 2010 11:46:46 -0400 |
parents | b6aedd1acdc0 22e4420d19f7 |
children | 4e22405d98d6 |
comparison
equal
deleted
inserted
replaced
1870:c77b5c592eab | 1871:75b0735b4d04 |
---|---|
1264 | 1264 |
1265 bool verify_object_alignment() { | 1265 bool verify_object_alignment() { |
1266 // Object alignment. | 1266 // Object alignment. |
1267 if (!is_power_of_2(ObjectAlignmentInBytes)) { | 1267 if (!is_power_of_2(ObjectAlignmentInBytes)) { |
1268 jio_fprintf(defaultStream::error_stream(), | 1268 jio_fprintf(defaultStream::error_stream(), |
1269 "error: ObjectAlignmentInBytes=%d must be power of 2", (int)ObjectAlignmentInBytes); | 1269 "error: ObjectAlignmentInBytes=%d must be power of 2\n", |
1270 (int)ObjectAlignmentInBytes); | |
1270 return false; | 1271 return false; |
1271 } | 1272 } |
1272 if ((int)ObjectAlignmentInBytes < BytesPerLong) { | 1273 if ((int)ObjectAlignmentInBytes < BytesPerLong) { |
1273 jio_fprintf(defaultStream::error_stream(), | 1274 jio_fprintf(defaultStream::error_stream(), |
1274 "error: ObjectAlignmentInBytes=%d must be greater or equal %d", (int)ObjectAlignmentInBytes, BytesPerLong); | 1275 "error: ObjectAlignmentInBytes=%d must be greater or equal %d\n", |
1276 (int)ObjectAlignmentInBytes, BytesPerLong); | |
1277 return false; | |
1278 } | |
1279 // It does not make sense to have big object alignment | |
1280 // since a space lost due to alignment will be greater | |
1281 // then a saved space from compressed oops. | |
1282 if ((int)ObjectAlignmentInBytes > 256) { | |
1283 jio_fprintf(defaultStream::error_stream(), | |
1284 "error: ObjectAlignmentInBytes=%d must not be greater then 256\n", | |
1285 (int)ObjectAlignmentInBytes); | |
1286 return false; | |
1287 } | |
1288 // In case page size is very small. | |
1289 if ((int)ObjectAlignmentInBytes >= os::vm_page_size()) { | |
1290 jio_fprintf(defaultStream::error_stream(), | |
1291 "error: ObjectAlignmentInBytes=%d must be less then page size %d\n", | |
1292 (int)ObjectAlignmentInBytes, os::vm_page_size()); | |
1275 return false; | 1293 return false; |
1276 } | 1294 } |
1277 return true; | 1295 return true; |
1278 } | 1296 } |
1279 | 1297 |