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

SUN Guoyun duke at openjdk.org
Fri Feb 10 01:55:45 UTC 2023


On Thu, 9 Feb 2023 16:54:42 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> 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
>
> test/jdk/java/rmi/server/UnicastRemoteObject/serialFilter/FilterUROTest.java line 74:
> 
>> 72:     public void useExportObject(String name, Object obj, int expectedFilterCount) throws RemoteException {
>> 73:         try {
>> 74:             impl = RemoteImpl.create();
> 
> I'd prefer to use  ReachabilityFence at the end of the try block to keep the nested scoping.
> ```Reference.reachabilityFence(impl);```

I just tested it and it really be OK, I'll submit a new commit.

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

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


More information about the core-libs-dev mailing list