[11u] 8215123: Crash in runtime image built with jlink --compress=2

Ali Ince ali.ince at gmail.com
Wed Mar 6 00:03:44 UTC 2019


Hi All,

I would like to backport this fix to 11u as it was the first reported
environment and still suffers from the reported error.

Bug: https://bugs.openjdk.java.net/browse/JDK-8215123
Fix (Original): http://hg.openjdk.java.net/jdk/client/rev/818b7bf2af49

I've verified the patch and would be glad if someone could sponsor the
backport.

The original patch itself can directly be applied into 11u without any
changes, and can be found below as well.

Thanks,

Ali

-------

# HG changeset patch
# User aivanov
# Date 1544537517 0
# Node ID 818b7bf2af49e40e0a4fb0ba62fc8ba500d0c709
# Parent  a659ccd1888d9d9ff444a62df04ad264f4d2eb1a
8215123: Crash in runtime image built with jlink --compress=2
Reviewed-by: ihse, alanb

diff -r a659ccd1888d -r 818b7bf2af49
src/java.base/share/native/libjimage/imageDecompressor.cpp
--- a/src/java.base/share/native/libjimage/imageDecompressor.cpp Tue Dec 11
11:45:43 2018 +0530
+++ b/src/java.base/share/native/libjimage/imageDecompressor.cpp Tue Dec 11
14:11:57 2018 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights
reserved.
+ * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights
reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -38,8 +38,8 @@
 #include <dlfcn.h>
 #endif

-typedef jboolean (JNICALL *ZipInflateFully_t)(void *inBuf, jlong inLen,
-                                              void *outBuf, jlong outLen,
char **pmsg);
+typedef jboolean (*ZipInflateFully_t)(void *inBuf, jlong inLen,
+                                      void *outBuf, jlong outLen, char
**pmsg);
 static ZipInflateFully_t ZipInflateFully        = NULL;

 #ifndef WIN32


More information about the jdk-updates-dev mailing list