[PATCH] 8246633: Improve the performance of ObjectInputStream.resolveClass(ObjectStreamClass)

Peter Kessler (Open Source) peter.kessler at os.amperecomputing.com
Mon Jun 15 18:47:05 UTC 2020


Alan,

Indeed!  Thanks for the instruction.  Running

  $ make test-image

and adding

  -nativepath:build/linux-$(arch)-server-release/images/test/jdk/jtreg/native

to my jtreg command line allows me to pass all tests that had errors, on
aarch64 and x86_64, with and without the proposed patch.

                    ... peter

-----Original Message-----
From: Alan Bateman <Alan.Bateman at oracle.com>
Date: Saturday, June 13, 2020 at 7:24 AM
To: "Peter Kessler (Open Source)" <peter.kessler at os.amperecomputing.com>, "core-libs-dev at openjdk.java.net" <core-libs-dev at openjdk.java.net>
Subject: Re: [PATCH] 8246633: Improve the performance of ObjectInputStream.resolveClass(ObjectStreamClass)



    On 12/06/2020 21:04, Peter Kessler (Open Source) wrote:
    > Daniel,
    >
    > Thanks for the suggestions to increase the timeout and lower the
    > concurrency. I did Bad Science(TM) and changed them both at the same
    > time. I am now running
    >
    >    $ jtreg-5.0-b01/bin/jtreg \
    >        -verbose:summary -a -ea -esa -agentvm -conc:1 -ignore:quiet -timeout:4 \
    >        -exclude:./test/jdk/ProblemList.txt \
    >        -jdk:${jdk} \
    >       ./test/jdk/:jdk_core ./test/jdk/:jdk_svc
    >
    > I only had time for 2 tests of each jdk overnight, because running that
    > way takes much longer, but the results are less confusing.
    >
    > Running on x86_64, counting failures and errors in 2 runs with OracleJDK
    > build 15-ea+25-1229
    >
    >      2 Error:  java/lang/ClassLoader/nativeLibrary/NativeLibraryTest.java
    >      2 Error:  java/lang/instrument/HiddenClass/HiddenClassAgent.java
    >      2 Error:  java/lang/reflect/exeCallerAccessTest/CallerAccessTest.java
    >      2 Error:  java/lang/String/nativeEncoding/StringPlatformChars.java
    >      2 Error:  java/nio/channels/FileChannel/directio/DirectIOTest.java
    >      2 Error:  java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.java
    >      2 Error:  jdk/internal/loader/NativeLibraries/Main.java
    >      2 Error: Some tests failed or other problems occurred.
    >      2 Error:  sun/management/jmxremote/bootstrap/CustomLauncherTest.java
    >      2 Error:  tools/launcher/JliLaunchTest.java
    >     
    These are tests that use native libraries and need jtreg run with 
    -nativepath with the path to these libraries. The "test" make target 
    might be want you want, to avoid your jtreg command getting too complicated.

    -Alan



More information about the core-libs-dev mailing list