Mercurial > hg > truffle
comparison test/runtime/SharedArchiveFile/LimitSharedSizes.java @ 20586:03e6d34be1f5
8038268: VM Crashes in MetaspaceShared::generate_vtable_methods while creating CDS archive with limiting SharedMiscCodeSize
Summary: estimate the minimum required size for the misc code region and check if the specified misc code region size meets the minimum size requirement
Reviewed-by: jiangli, dholmes
author | ccheung |
---|---|
date | Thu, 30 Oct 2014 13:38:00 -0700 |
parents | 9c8439756c05 |
children |
comparison
equal
deleted
inserted
replaced
20585:90297adbda9d | 20586:03e6d34be1f5 |
---|---|
49 new SharedSizeTestData("-XX:SharedReadWriteSize","4M", "read write"), | 49 new SharedSizeTestData("-XX:SharedReadWriteSize","4M", "read write"), |
50 | 50 |
51 // Known issue, JDK-8038422 (assert() on Windows) | 51 // Known issue, JDK-8038422 (assert() on Windows) |
52 // new SharedSizeTestData("-XX:SharedMiscDataSize", "500k", "miscellaneous data"), | 52 // new SharedSizeTestData("-XX:SharedMiscDataSize", "500k", "miscellaneous data"), |
53 | 53 |
54 // This will cause a VM crash; commenting out for now; see bug JDK-8038268 | 54 // Too small of a misc code size should not cause a vm crash. |
55 // @ignore JDK-8038268 | 55 // It should result in the following error message: |
56 // new SharedSizeTestData("-XX:SharedMiscCodeSize", "20k", "miscellaneous code"), | 56 // The shared miscellaneous code space is not large enough |
57 // to preload requested classes. Use -XX:SharedMiscCodeSize= | |
58 // to increase the initial size of shared miscellaneous code space. | |
59 new SharedSizeTestData("-XX:SharedMiscCodeSize", "20k", "miscellaneous code"), | |
57 | 60 |
58 // these values are larger than default ones, but should | 61 // these values are larger than default ones, but should |
59 // be acceptable and not cause failure | 62 // be acceptable and not cause failure |
60 new SharedSizeTestData("-XX:SharedReadOnlySize", "20M", null), | 63 new SharedSizeTestData("-XX:SharedReadOnlySize", "20M", null), |
61 new SharedSizeTestData("-XX:SharedReadWriteSize", "20M", null), | 64 new SharedSizeTestData("-XX:SharedReadWriteSize", "20M", null), |