Skip to content

Commit

Permalink
Merge pull request #481 from ibmruntimes/openj9
Browse files Browse the repository at this point in the history
Merge jdk-11.0.15+4 to the 0.32 release
  • Loading branch information
JasonFengJ9 committed Mar 3, 2022
2 parents 7b7ba84 + fa297c8 commit 656e006
Show file tree
Hide file tree
Showing 26 changed files with 1,683 additions and 175 deletions.
12 changes: 6 additions & 6 deletions closed/OpenJ9.gmk
@@ -1,5 +1,5 @@
# ===========================================================================
# (c) Copyright IBM Corp. 2017, 2021 All Rights Reserved
# (c) Copyright IBM Corp. 2017, 2022 All Rights Reserved
# ===========================================================================
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
Expand Down Expand Up @@ -32,20 +32,20 @@ ifeq (,$(BUILD_ID))
BUILD_ID := 000000
endif

OPENJDK_SHA := $(shell git -C $(TOPDIR) rev-parse --short HEAD)
OPENJDK_SHA := $(shell $(GIT) -C $(TOPDIR) rev-parse --short HEAD)
ifeq (,$(OPENJDK_SHA))
$(error Could not determine OpenJDK SHA)
endif

OPENJ9_SHA := $(shell git -C $(OPENJ9_TOPDIR) rev-parse --short HEAD)
OPENJ9_SHA := $(shell $(GIT) -C $(OPENJ9_TOPDIR) rev-parse --short HEAD)
ifeq (,$(OPENJ9_SHA))
$(error Could not determine OpenJ9 SHA)
endif

# Find OpenJ9 tag associated with current commit (suppressing stderr in case there is no such tag).
OPENJ9_TAG := $(shell git -C $(OPENJ9_TOPDIR) describe --exact-match HEAD 2>/dev/null)
OPENJ9_TAG := $(shell $(GIT) -C $(OPENJ9_TOPDIR) describe --exact-match HEAD 2>/dev/null)
ifeq (,$(OPENJ9_TAG))
OPENJ9_BRANCH := $(shell git -C $(OPENJ9_TOPDIR) rev-parse --abbrev-ref HEAD)
OPENJ9_BRANCH := $(shell $(GIT) -C $(OPENJ9_TOPDIR) rev-parse --abbrev-ref HEAD)
ifeq (,$(OPENJ9_BRANCH))
$(error Could not determine OpenJ9 branch)
endif
Expand All @@ -54,7 +54,7 @@ else
OPENJ9_VERSION_STRING := $(OPENJ9_TAG)
endif

OPENJ9OMR_SHA := $(shell git -C $(OPENJ9OMR_TOPDIR) rev-parse --short HEAD)
OPENJ9OMR_SHA := $(shell $(GIT) -C $(OPENJ9OMR_TOPDIR) rev-parse --short HEAD)
ifeq (,$(OPENJ9OMR_SHA))
$(error Could not determine OMR SHA)
endif
Expand Down
8 changes: 4 additions & 4 deletions closed/custom/ReleaseFile.gmk
@@ -1,5 +1,5 @@
# ===========================================================================
# (c) Copyright IBM Corp. 2017, 2020 All Rights Reserved
# (c) Copyright IBM Corp. 2017, 2022 All Rights Reserved
# ===========================================================================
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
Expand All @@ -18,6 +18,6 @@
# 2 along with this work; if not, see <http://www.gnu.org/licenses/>.
# ===========================================================================

SOURCE_REVISION := OpenJDK:$(shell git -C $(TOPDIR) rev-parse --short HEAD)
SOURCE_REVISION += OpenJ9:$(shell git -C $(OPENJ9_TOPDIR) rev-parse --short HEAD)
SOURCE_REVISION += OMR:$(shell git -C $(OPENJ9OMR_TOPDIR) rev-parse --short HEAD)
SOURCE_REVISION := OpenJDK:$(shell $(GIT) -C $(TOPDIR) rev-parse --short HEAD)
SOURCE_REVISION += OpenJ9:$(shell $(GIT) -C $(OPENJ9_TOPDIR) rev-parse --short HEAD)
SOURCE_REVISION += OMR:$(shell $(GIT) -C $(OPENJ9OMR_TOPDIR) rev-parse --short HEAD)
2 changes: 1 addition & 1 deletion closed/openjdk-tag.gmk
@@ -1 +1 @@
OPENJDK_TAG := jdk-11.0.15+3
OPENJDK_TAG := jdk-11.0.15+4
Expand Up @@ -1030,10 +1030,10 @@ public static ICC_Profile getInstance(InputStream s) throws IOException {
static byte[] getProfileDataFromStream(InputStream s) throws IOException {

BufferedInputStream bis = new BufferedInputStream(s);
bis.mark(128);
bis.mark(128); // 128 is the length of the ICC profile header

byte[] header = bis.readNBytes(128);
if (header[36] != 0x61 || header[37] != 0x63 ||
if (header.length < 128 || header[36] != 0x61 || header[37] != 0x63 ||
header[38] != 0x73 || header[39] != 0x70) {
return null; /* not a valid profile */
}
Expand Down

0 comments on commit 656e006

Please sign in to comment.