Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Oct 2021 12:20:22 GMT
From:      Mikael Urankar <mikael@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: fb734e4565b6 - main - java/openjdk17: Fix build on aarch64.
Message-ID:  <202110051220.195CKMK4025208@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mikael:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fb734e4565b65fb1a3d8efacb445900c2e0b131f

commit fb734e4565b65fb1a3d8efacb445900c2e0b131f
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2021-10-05 12:04:36 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2021-10-05 12:06:38 +0000

    java/openjdk17: Fix build on aarch64.
    
    Fully initialize FrameForm: Corrects adlc segfault when malloc junk options are set.
    
    Approved by:    portmgr (build fix blanket)
---
 .../patch-src_hotspot_share_adlc_formsopt.cpp      | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/java/openjdk17/files/patch-src_hotspot_share_adlc_formsopt.cpp b/java/openjdk17/files/patch-src_hotspot_share_adlc_formsopt.cpp
new file mode 100644
index 000000000000..99ad5c17d8b8
--- /dev/null
+++ b/java/openjdk17/files/patch-src_hotspot_share_adlc_formsopt.cpp
@@ -0,0 +1,26 @@
+https://github.com/battleblow/jdk17/pull/1
+
+--- src/hotspot/share/adlc/formsopt.cpp.orig	2021-07-23 23:38:59 UTC
++++ src/hotspot/share/adlc/formsopt.cpp
+@@ -436,15 +436,20 @@ void AllocClass::output(FILE *fp) {       // Write inf
+ //==============================Frame Handling=================================
+ //------------------------------FrameForm--------------------------------------
+ FrameForm::FrameForm() {
++  _sync_stack_slots = NULL;
++  _inline_cache_reg = NULL;
++  _interpreter_frame_pointer_reg = NULL;
++  _cisc_spilling_operand_name = NULL;
+   _frame_pointer = NULL;
+   _c_frame_pointer = NULL;
+   _alignment = NULL;
++  _return_addr_loc = false;
++  _c_return_addr_loc = false;
+   _return_addr = NULL;
+   _c_return_addr = NULL;
+   _varargs_C_out_slots_killed = NULL;
+   _return_value = NULL;
+   _c_return_value = NULL;
+-  _interpreter_frame_pointer_reg = NULL;
+ }
+ 
+ FrameForm::~FrameForm() {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110051220.195CKMK4025208>