8023638: Add the regression test for 8006997

Add the relevant test and proofread the VM messages as well

Reviewed-by: coleenp, mseledtsov, dcubed
This commit is contained in:
Aleksey Shipilev 2013-08-26 17:42:03 +04:00
parent 618cb11a73
commit 9f4ed448a0
2 changed files with 105 additions and 2 deletions

View file

@ -2230,7 +2230,7 @@ bool Arguments::check_vm_args_consistency() {
// among the distinct pages.
if (ContendedPaddingWidth < 0 || ContendedPaddingWidth > 8192) {
jio_fprintf(defaultStream::error_stream(),
"ContendedPaddingWidth=" INTX_FORMAT " must be the between %d and %d\n",
"ContendedPaddingWidth=" INTX_FORMAT " must be in between %d and %d\n",
ContendedPaddingWidth, 0, 8192);
status = false;
}
@ -2239,7 +2239,7 @@ bool Arguments::check_vm_args_consistency() {
// It is sufficient to check against the largest type size.
if ((ContendedPaddingWidth % BytesPerLong) != 0) {
jio_fprintf(defaultStream::error_stream(),
"ContendedPaddingWidth=" INTX_FORMAT " must be the multiple of %d\n",
"ContendedPaddingWidth=" INTX_FORMAT " must be a multiple of %d\n",
ContendedPaddingWidth, BytesPerLong);
status = false;
}