JDK-8234608 : [TESTBUG] Fix G1 redefineClasses tests and a memory leak
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 11,14,15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-11-22
  • Updated: 2022-05-18
  • Resolved: 2020-02-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 14 JDK 15
11.0.16Fixed 14.0.1Fixed 15 b11Fixed
Related Reports
Relates :  
Description
My colleague Ian Rogers found a few JNI memory leaks in this test. Several calls to JNIEnv::Get*() should be paired with calls to JNIEnv::Release*().

During review, we found that several affected tests were not properly configured, so makeRedefinition0() never runs. These tests will be fixed in the same change.
Comments
Fix request [11u] I backport this test-only change for parity with 11.0.17-oracle. No risk, only a test change. Clean backport. SAP nighlty testing passed.
18-05-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk11u-dev/pull/1093 Date: 2022-05-16 21:39:28 +0000
16-05-2022

Git URL: https://github.com/openjdk/jdk/commit/f844943273f094d925dcb02bdc43d07c0ad9ae98
16-05-2022

URL: https://hg.openjdk.java.net/jdk/client/rev/7ec9c6a6df4f User: psadhukhan Date: 2020-03-02 05:57:40 +0000
02-03-2020

Due to wrong fix version in this bug a backport was created. Making this the JDK 15 bug as this is the bug noted in the commit comment. HG Updates added a comment - 6 days ago URL: https://hg.openjdk.java.net/jdk/jdk/rev/7ec9c6a6df4f User: manc Date: 2020-02-13 18:55:31 +0000
19-02-2020

Existing bugs with "jdk14-fix-yes" seem all P1 or P2, and JEP-3 states that RC mainly considers P1 bugs. So I'll port this to 14u instead of 14. I'll mark this as a duplicate of JDK-8239012.
18-02-2020

Probably, your call. I am almost never against more/reliable tests anywhere.
17-02-2020

Yeah, 14 seems wrong now. It was added in November, but stretched till now. Do you think it's worth porting to 14?
14-02-2020

This issue has Fix-Version: 14, was it intended there? hgupdater would not autoclose this issue unless it is pushed to 14. Note there is an automatic "backport" to 15.
14-02-2020