1
0
Fridrich Strba 2020-11-03 07:32:45 +00:00 committed by Git OBS Bridge
parent 5cc29e5ec4
commit 3adf12463a
3 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Nov 2 16:04:46 UTC 2020 - Fridrich Strba <fstrba@suse.com>
- Added patch:
* s390.patch
+ Fix build on s390 31bit
-------------------------------------------------------------------
Mon Nov 2 14:29:43 UTC 2020 - Fridrich Strba <fstrba@suse.com>

View File

@ -190,6 +190,8 @@ Patch14: zero-javadoc-verbose.patch
#
# Patch for PPC
Patch103: ppc-zero-hotspot.patch
# Patch for S390
Patch104: s390.patch
#
Patch200: JDK-8250861.patch
@ -528,6 +530,10 @@ patch -p0 -i %{PATCH14}
patch -p0 -i %{PATCH103}
%endif
%ifarch s390
patch -p0 -i %{PATCH104}
%endif
patch -p0 -i %{PATCH200}
patch -p0 -i %{PATCH2001}

11
s390.patch Normal file
View File

@ -0,0 +1,11 @@
--- openjdk/hotspot/src/share/vm/gc_implementation/g1/g1ConcurrentMarkObjArrayProcessor.cpp 2020-11-02 16:54:31.999787520 +0100
+++ openjdk/hotspot/src/share/vm/gc_implementation/g1/g1ConcurrentMarkObjArrayProcessor.cpp 2020-11-02 16:59:27.993852851 +0100
@@ -41,7 +41,7 @@
}
size_t G1CMObjArrayProcessor::process_array_slice(objArrayOop obj, HeapWord* start_from, size_t remaining) {
- size_t words_to_scan = MIN2(remaining, ObjArrayMarkingStride);
+ size_t words_to_scan = MIN2(remaining, (size_t) ObjArrayMarkingStride);
if (remaining > ObjArrayMarkingStride) {
push_array_slice(start_from + ObjArrayMarkingStride);