On Thu, 9 Feb 2023 08:48:17 GMT, SUN Guoyun <[email protected]> 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
Changes requested by rriggs (Reviewer).
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);```
-------------
PR: https://git.openjdk.org/jdk/pull/12399