diff -r f0312c7d5b37 -r ba6c248cae19 test/hotspot/jtreg/gc/survivorAlignment/SurvivorAlignmentTestMain.java --- a/test/hotspot/jtreg/gc/survivorAlignment/SurvivorAlignmentTestMain.java Wed Nov 13 11:21:15 2019 +0100 +++ b/test/hotspot/jtreg/gc/survivorAlignment/SurvivorAlignmentTestMain.java Wed Nov 13 11:37:29 2019 +0100 @@ -71,7 +71,6 @@ private static final String G1_EDEN = "G1 Eden Space"; private static final String G1_SURVIVOR = "G1 Survivor Space"; private static final String SERIAL_TENURED = "Tenured Gen"; - private static final String CMS_TENURED = "CMS Old Gen"; private static final String PS_TENURED = "PS Old Gen"; private static final String G1_TENURED = "G1 Old Gen"; @@ -79,14 +78,6 @@ SurvivorAlignmentTestMain.WHITE_BOX.getUintxVMFlag( "G1HeapRegionSize")).orElse(-1L); - /** - * Min size of free chunk in CMS generation. - * An object allocated in CMS generation will at least occupy this amount - * of bytes. - */ - private static final long CMS_MIN_FREE_CHUNK_SIZE - = 3L * Unsafe.ADDRESS_SIZE; - private static final AlignmentHelper EDEN_SPACE_HELPER; private static final AlignmentHelper SURVIVOR_SPACE_HELPER; private static final AlignmentHelper TENURED_SPACE_HELPER; @@ -125,11 +116,6 @@ * alignment in other spaces is expected to be equal to * {@code ObjectAlignmentInBytes} value. * - * In CMS generation we can't allocate less then {@code MinFreeChunk} value, - * for other CGs we expect that object of size {@code MIN_OBJECT_SIZE} - * could be allocated as it is (of course, its size could be aligned - * according to alignment value used in a particular space). - * * For G1 GC MXBeans could report memory usage only with region size * precision (if an object allocated in some G1 heap region, then all region * will claimed as used), so for G1's spaces precision is equal to @@ -187,15 +173,6 @@ AlignmentHelper.OBJECT_ALIGNMENT_IN_BYTES, AlignmentHelper.MIN_OBJECT_SIZE, pool); break; - case SurvivorAlignmentTestMain.CMS_TENURED: - Asserts.assertNull(tenuredHelper, - "Only one bean for tenured space is expected."); - tenuredHelper = new AlignmentHelper( - AlignmentHelper.OBJECT_ALIGNMENT_IN_BYTES, - AlignmentHelper.OBJECT_ALIGNMENT_IN_BYTES, - SurvivorAlignmentTestMain.CMS_MIN_FREE_CHUNK_SIZE, - pool); - break; } } EDEN_SPACE_HELPER = Objects.requireNonNull(edenHelper,