[jdk8u-dev] RFR: 8315135: Memory leak in the native implementation of Pack200.Unpacker.unpack()

Volker Simonis simonis at openjdk.org
Wed Aug 30 16:21:44 UTC 2023


Hi all,

This pull request contains a backport of commit [b77c161e](https://github.com/openjdk/jdk11u-dev/commit/b77c161e7509aa3b09ebf3e6b2b1490c0667bbdc) from the [openjdk/jdk11u-dev](https://git.openjdk.org/jdk11u-dev) repository.

The commit being backported was authored by Volker Simonis on 30 Aug 2023 and was reviewed by Christoph Langer and Thomas Stuefe.

The backport applies cleanly except for the usual 11/8 directory shuffling and the following cosmetic context change in `jni.cpp`:

> --- a/jdk/src/share/native/com/sun/java/util/jar/pack/jni.cpp
> +++ b/jdk/src/share/native/com/sun/java/util/jar/pack/jni.cpp
58c58
<    CHECK_EXCEPTION_RETURN_VALUE(uPtr, 0);
---
>    CHECK_EXCEPTION_RETURN_VALUE(uPtr, NULL);

Thanks!

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

Commit messages:
 - Backport b77c161e7509aa3b09ebf3e6b2b1490c0667bbdc

Changes: https://git.openjdk.org/jdk8u-dev/pull/361/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=361&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8315135
  Stats: 65 lines in 4 files changed: 63 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk8u-dev/pull/361.diff
  Fetch: git fetch https://git.openjdk.org/jdk8u-dev.git pull/361/head:pull/361

PR: https://git.openjdk.org/jdk8u-dev/pull/361


More information about the jdk8u-dev mailing list