equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
27 * @summary Unused metadata created during dump time should be freed from the CDS archive. |
27 * @summary Unused metadata created during dump time should be freed from the CDS archive. |
28 * @requires vm.cds |
28 * @requires vm.cds |
29 * @library /test/lib |
29 * @library /test/lib |
30 * @modules jdk.jartool/sun.tools.jar |
30 * @modules jdk.jartool/sun.tools.jar |
31 * @compile test-classes/MethodNoReturn.jasm test-classes/Hello.java |
31 * @compile test-classes/MethodNoReturn.jasm test-classes/Hello.java |
32 * @run main FreeUnusedMetadata |
32 * @run driver FreeUnusedMetadata |
33 */ |
33 */ |
34 |
34 |
35 import java.nio.file.Files; |
35 import java.nio.file.Files; |
36 import java.nio.file.Paths; |
36 import java.nio.file.Paths; |
37 import jdk.test.lib.process.OutputAnalyzer; |
37 import jdk.test.lib.process.OutputAnalyzer; |