< prev index next > test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/LambdaCustomLoader.java
Print this page
/*
- * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
// 1. Host class loaded by a custom loader is initialized during dump time.
dump(topArchiveName,
"-Xlog:class+load,cds=debug,cds+dynamic",
"-cp", appJar, mainClass, appJar, "init", "keep-alive")
.assertNormalExit(output -> {
- output.shouldMatch("Skipping.LambHello[$][$]Lambda.*0x.*:.Hidden.class")
+ output.shouldMatch("Skipping.LambHello[$][$]Lambda.*0x.*:.Unreferenced.hidden.class")
.shouldHaveExitValue(0);
});
run(topArchiveName,
"-Xlog:class+load,class+unload",
< prev index next >