test/runtime/SharedArchiveFile/LimitSharedSizes.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
hotspot Cdiff test/runtime/SharedArchiveFile/LimitSharedSizes.java
test/runtime/SharedArchiveFile/LimitSharedSizes.java
Print this page
*** 41,63 ****
expectedErrorMsg = msg;
}
}
private static final SharedSizeTestData[] testTable = {
! // values in this part of the test table should cause failure
! // (shared space sizes are deliberately too small)
! new SharedSizeTestData("-XX:SharedReadOnlySize", "4M", "read only"),
! new SharedSizeTestData("-XX:SharedReadWriteSize","4M", "read write"),
!
! // Known issue, JDK-8038422 (assert() on Windows)
! // new SharedSizeTestData("-XX:SharedMiscDataSize", "500k", "miscellaneous data"),
!
! // Too small of a misc code size should not cause a vm crash.
! // It should result in the following error message:
// The shared miscellaneous code space is not large enough
// to preload requested classes. Use -XX:SharedMiscCodeSize=
// to increase the initial size of shared miscellaneous code space.
new SharedSizeTestData("-XX:SharedMiscCodeSize", "20k", "miscellaneous code"),
// these values are larger than default ones, but should
// be acceptable and not cause failure
new SharedSizeTestData("-XX:SharedReadOnlySize", "20M", null),
--- 41,58 ----
expectedErrorMsg = msg;
}
}
private static final SharedSizeTestData[] testTable = {
! // Too small of a region size should not cause a vm crash.
! // It should result in an error message like the following:
// The shared miscellaneous code space is not large enough
// to preload requested classes. Use -XX:SharedMiscCodeSize=
// to increase the initial size of shared miscellaneous code space.
+ new SharedSizeTestData("-XX:SharedReadOnlySize", "4M", "read only"),
+ new SharedSizeTestData("-XX:SharedReadWriteSize","4M", "read write"),
+ new SharedSizeTestData("-XX:SharedMiscDataSize", "50k", "miscellaneous data"),
new SharedSizeTestData("-XX:SharedMiscCodeSize", "20k", "miscellaneous code"),
// these values are larger than default ones, but should
// be acceptable and not cause failure
new SharedSizeTestData("-XX:SharedReadOnlySize", "20M", null),
test/runtime/SharedArchiveFile/LimitSharedSizes.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File