RFR: 8301737: java/rmi/server/UnicastRemoteObject/serialFilter/FilterUROTest.java fail with -Xcomp [v4]

Mark Sheppard msheppar at openjdk.org
Thu Feb 9 10:06:43 UTC 2023


On Thu, 9 Feb 2023 08:48:17 GMT, SUN Guoyun <duke at openjdk.org> wrote:

>> Hi all,
>> When -Xcomp be used, this testcase will use more codecaches, causing the GC to be triggered early, then causing this test failed on LoongArch64 architecture.
>> 
>> This PR fix the issue, Please help review it.
>> 
>> Thanks.
>
> SUN Guoyun has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8301737: java/rmi/server/UnicastRemoteObject/serialFilter/FilterUROTest.java fail with -Xcomp

ok thanks for the feedback and trying my suggestion. I would put a D in front of GC. The issue relates to the DGC in RMI, and it is possible that a race condition could occur in the test.
If you add -Dsun.rmi.dgc.logLevel=VERBOSE as follows and execute the test this should generate some informative trace

@run testng/othervm -Dsun.rmi.dgc.logLevel=VERBOSE FilterUROTest

generates trace as follows:

Feb 09, 2023 9:50:57 AM sun.rmi.transport.Target pinImpl
FINER: MainThread: strongRef = sun.rmi.transport.DGCImpl at 7cbf0dfe
Feb 09, 2023 9:50:57 AM sun.rmi.transport.DGCImpl$2 run
FINER: MainThread: add object [0:0:0, 2]
Feb 09, 2023 9:50:57 AM sun.rmi.transport.Transport exportObject
FINER: MainThread: add object [62fd29ac:1863595d6b8:-7fff, 5531192820167141595]
Feb 09, 2023 9:50:58 AM sun.rmi.transport.Transport exportObject
FINER: MainThread: add object [62fd29ac:1863595d6b8:-7ffd, 8746623791996069441]
Feb 09, 2023 9:50:58 AM sun.rmi.transport.ObjectTable$Reaper run       ************* REAPER RUNNING
FINER: RMI Reaper: remove object [62fd29ac:1863595d6b8:-7fff, 5531192820167141595]  ***** obj removed
Feb 09, 2023 9:50:58 AM sun.rmi.transport.Transport exportObject
FINER: MainThread: add object [62fd29ac:1863595d6b8:-7ffb, 1056299151672018720]
Feb 09, 2023 9:50:58 AM sun.rmi.transport.Transport exportObject
FINER: MainThread: add object [62fd29ac:1863595d6b8:-7ff9, 8876407693706706001]
Feb 09, 2023 9:50:58 AM sun.rmi.transport.Transport exportObject
FINER: MainThread: add object [62fd29ac:1863595d6b8:-7ff7, -7965896295360386187]
Feb 09, 2023 9:50:58 AM sun.rmi.transport.Transport exportObject
FINER: MainThread: add object [62fd29ac:1863595d6b8:-7ff5, -7624739283438349379]
Feb 09, 2023 9:50:58 AM sun.rmi.transport.Transport exportObject
FINER: MainThread: add object [62fd29ac:1863595d6b8:-7ff3, 7826842570026353870]
Feb 09, 2023 9:50:58 AM sun.rmi.transport.Transport exportObject
FINER: MainThread: add object [62fd29ac:1863595d6b8:-7ff1, 2393465261706369534]
Feb 09, 2023 9:50:58 AM sun.rmi.transport.Transport exportObject
FINER: MainThread: add object [62fd29ac:1863595d6b8:-7fef, -1516555594713694850]
Feb 09, 2023 9:50:58 AM sun.rmi.transport.Transport exportObject
FINER: MainThread: add object [62fd29ac:1863595d6b8:-7fed, 2782915653950164382]
STATUS:Passed.

-------------

PR: https://git.openjdk.org/jdk/pull/12399


More information about the core-libs-dev mailing list