[jdk11u-dev] RFR: 8198540: Dynalink leaks memory when generating type converters
Attila Szegedi
szegedia at gmail.com
Sat Feb 13 21:57:01 UTC 2021
I would like to backport JDK-8198540 to 11u.
What follows is very similar to my earlier message today for backporting the same issue to 13u; the 13u and 11u changesets are virtually identical (except for a 4-line offset in applying the one line in TEST.groups file.)
The patch doesn't apply cleanly due to minor context differences, namely that [JDK-8251538](https://github.com/openjdk/jdk/commit/4b1b547020effb72ba9ef92807fec39a0db99973 <https://github.com/openjdk/jdk/commit/4b1b547020effb72ba9ef92807fec39a0db99973>) is not in 11u. This was a purely code refactoring task, which among other things refactored some anonymous inner classes in `TypeConverterFactory.java` and `ClassMap.java` to lambdas. All the lines that failed to apply cleanly were deletes, so after this change these differences no longer even exist.
Additionally, 11u did not have running of tests in `test/jdk/jdk/dynalink` enabled as part of the `jdk_other` test group, so a relevant single line of [JDK-8252124](https://github.com/openjdk/jdk/commit/97f8261e4190b8edf83c1d8f11ea57f6c8338284#diff-687d4f32a29eeafbc88c0807e48388ea3e3b16dee622db0fef1473cb387f22ac <https://github.com/openjdk/jdk/commit/97f8261e4190b8edf83c1d8f11ea57f6c8338284#diff-687d4f32a29eeafbc88c0807e48388ea3e3b16dee622db0fef1473cb387f22ac>) was also added to `test/jdk/TEST.groups` to enable the two tests that are part of this change to run.
-------------
Commit messages:
- 8198540: Dynalink leaks memory when generating type converters
Webrev: http://cr.openjdk.java.net/~attila/8198540/webrev.jdk11u-dev/index.html <https://webrevs.openjdk.java.net/?repo=jdk13u-dev&pr=127&range=00>
Issue: https://bugs.openjdk.java.net/browse/JDK-8198540 <https://bugs.openjdk.java.net/browse/JDK-8198540>
More information about the jdk-updates-dev
mailing list