Re: RFR: JDK-8216528: test/jdk/java/rmi/transport/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java failing with Xcomp

2019-01-31 Thread Jie Fu
Thanks Roger. On 2019/1/31 下午11:16, Roger Riggs wrote: Pushed On 01/30/2019 10:12 PM, Jie Fu wrote: Hi Roger, I really hope you can still sponsor this. Could you help me, please? Thanks again. Best regards, Jie On 2019/1/31 上午10:59, David Holmes wrote: On 31/01/2019 12:44 pm, Jie Fu

Re: RFR: JDK-8216528: test/jdk/java/rmi/transport/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java failing with Xcomp

2019-01-31 Thread Roger Riggs
Pushed On 01/30/2019 10:12 PM, Jie Fu wrote: Hi Roger, I really hope you can still sponsor this. Could you help me, please? Thanks again. Best regards, Jie On 2019/1/31 上午10:59, David Holmes wrote: On 31/01/2019 12:44 pm, Jie Fu wrote: Hi David, I prefer the original patch[1]. Could you

Re: RFR: JDK-8216528: test/jdk/java/rmi/transport/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java failing with Xcomp

2019-01-30 Thread Jie Fu
Hi Roger, I really hope you can still sponsor this. Could you help me, please? Thanks again. Best regards, Jie On 2019/1/31 上午10:59, David Holmes wrote: On 31/01/2019 12:44 pm, Jie Fu wrote: Hi David, I prefer the original patch[1]. Could you please sponsor this issue or help me find a

Re: RFR: JDK-8216528: test/jdk/java/rmi/transport/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java failing with Xcomp

2019-01-30 Thread David Holmes
On 31/01/2019 12:44 pm, Jie Fu wrote: Hi David, I prefer the original patch[1]. Could you please sponsor this issue or help me find a sponsor. I really appreciate it. Thank you very much. Hopefully Roger will still sponsor this. Thanks, David Also thanks Roger. We had a pleasant

Re: RFR: JDK-8216528: test/jdk/java/rmi/transport/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java failing with Xcomp

2019-01-30 Thread Jie Fu
Hi David, I prefer the original patch[1]. Could you please sponsor this issue or help me find a sponsor. I really appreciate it. Thank you very much. Also thanks Roger. We had a pleasant discussion offlist. Best regards, Jie [1]

Re: RFR: JDK-8216528: test/jdk/java/rmi/transport/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java failing with Xcomp

2019-01-30 Thread David Holmes
Hi Jie, Roger, I think this has now consumed far too many cycles for everyone, dealing with a test that is checking for a leak that can't even exist any more. Alan was fine with the original proposed patch, as was I, so I think we can should proceed with that. Obviously there is more than one

Re: RFR: JDK-8216528: test/jdk/java/rmi/transport/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java failing with Xcomp

2019-01-28 Thread Jie Fu
Hi, I agree that the simplest way to fix the issue is just adding the reachabilityFence. But this patch might also fail since the VM doesn't guarantee that a GC would be performed. I didn't make such patch since I've learned from Sergey and Alan that calling "System.gc()" several times is

Re: RFR: JDK-8216528: test/jdk/java/rmi/transport/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java failing with Xcomp

2019-01-28 Thread Roger Riggs
Hi, The simplest fix for this failing test is to add a call to reachabilityFence to prevent the loader and loaderRef from going out of scope early.  It maintains getting debug output on a failure. Offlist, Jie and I explored some alternate ways to write the test and settled on this one.

Re: RFR: JDK-8216528: test/jdk/java/rmi/transport/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java failing with Xcomp

2019-01-11 Thread Jie Fu
Thanks David and Roger. On 2019年01月12日 06:52, David Holmes wrote: Hi Roger, On 12/01/2019 2:22 am, Roger Riggs wrote: Hi, The proposed patch changes the test in a way that is unintended. Adding the infinite loop of gc() and sleep, will change the timeout behavior from the existing timeout

Re: RFR: JDK-8216528: test/jdk/java/rmi/transport/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java failing with Xcomp

2019-01-11 Thread David Holmes
Hi Roger, On 12/01/2019 2:22 am, Roger Riggs wrote: Hi, The proposed patch changes the test in a way that is unintended. Adding the infinite loop of gc() and sleep, will change the timeout behavior from the existing timeout of TIMEOUT to the jtreg default timeout of the whole test.

Re: RFR: JDK-8216528: test/jdk/java/rmi/transport/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java failing with Xcomp

2019-01-11 Thread Roger Riggs
Hi, The proposed patch changes the test in a way that is unintended. Adding the infinite loop of gc() and sleep, will change the timeout behavior from the existing timeout of TIMEOUT to the jtreg default timeout of the whole test. Further, it renders the check at lines 114-120 irrelevant

Re: RFR: JDK-8216528: test/jdk/java/rmi/transport/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java failing with Xcomp

2019-01-11 Thread Jie Fu
Thanks Alan. On 2019年01月11日 22:14, Alan Bateman wrote: On 11/01/2019 04:16, David Holmes wrote: I see three choices for you here :) 1. Don't try to run all tests under Xcomp but just stick to the "core" sets of tests already tested by others. 2. Fix the given test as outlined. (I tested

Re: RFR: JDK-8216528: test/jdk/java/rmi/transport/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java failing with Xcomp

2019-01-11 Thread Alan Bateman
On 11/01/2019 04:16, David Holmes wrote: I see three choices for you here :) 1. Don't try to run all tests under Xcomp but just stick to the "core" sets of tests already tested by others. 2. Fix the given test as outlined. (I tested it on linux-x64 and it fixed the problem.) 3. Exclude

Re: RFR: JDK-8216528: test/jdk/java/rmi/transport/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java failing with Xcomp

2019-01-10 Thread Jie Fu
Thanks David. Could someone from core-libs help to review it? Thanks. On 2019/1/11 下午1:33, David Holmes wrote: On 11/01/2019 3:07 pm, Jie Fu wrote: Hi David, Thank you very much. I'd like to choose option 2. A test case is more valuable if it can be used for both interpreter and JIT tests.

Re: RFR: JDK-8216528: test/jdk/java/rmi/transport/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java failing with Xcomp

2019-01-10 Thread David Holmes
On 11/01/2019 3:07 pm, Jie Fu wrote: Hi David, Thank you very much. I'd like to choose option 2. A test case is more valuable if it can be used for both interpreter and JIT tests. Here is the patch based on your comments.

Re: RFR: JDK-8216528: test/jdk/java/rmi/transport/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java failing with Xcomp

2019-01-10 Thread Jie Fu
Hi David, Thank you very much. I'd like to choose option 2. A test case is more valuable if it can be used for both interpreter and JIT tests. Here is the patch based on your comments. -- diff -r 02e648ae46c3

Re: RFR: JDK-8216528: test/jdk/java/rmi/transport/runtimeThreadInheritanceLeak/RuntimeThreadInheritanceLeak.java failing with Xcomp

2019-01-10 Thread David Holmes
Hi Jie, On 11/01/2019 1:24 pm, Jie Fu wrote: I'm sorry to miss the JBS link. JBS: https://bugs.openjdk.java.net/browse/JDK-8216528 Could you please review it and give me some advice? Thanks. I see three choices for you here :) 1. Don't try to run all tests under Xcomp but just stick to the