RFR: 8267754: cds/appcds/loaderConstraints/LoaderConstraintsTest.java fails on x86_32 due to customized class loader is not supported
Yumin Qi
minqi at openjdk.java.net
Wed May 26 03:46:17 UTC 2021
On Wed, 26 May 2021 02:53:09 GMT, Jie Fu <jiefu at openjdk.org> wrote:
> Hi all,
>
> cds/appcds/loaderConstraints/LoaderConstraintsTest.java fails on x86_32.
> This reason is that customized class loader is not supported on 32-bit systems [1].
> It would be better to fix it.
>
> Thanks.
> Best regards,
> Jie
>
>
> [1] https://github.com/openjdk/jdk/blob/master/src/hotspot/share/cds/classListParser.cpp#L440
Changes requested by minqi (Reviewer).
test/hotspot/jtreg/runtime/cds/appcds/loaderConstraints/LoaderConstraintsTest.java line 113:
> 111: appJar = ClassFileInstaller.writeJar("loader_constraints.jar", appClasses);
> 112: doTest();
> 113: if (!Platform.isWindows() && Platform.is64bit()) {
Platform.java has a function: Platform.areCustomLoadersSupportedForCDS(). You can use here.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4198
More information about the hotspot-runtime-dev
mailing list