Elasticsearch / OpenJDK8 fails to start on 13.0-RELEASE on arm64

From: Adrian Maliszewski <adrian_at_aftre.net>
Date: Sun, 02 Jan 2022 06:54:02 UTC
Hello freebsd-arm,

Trying to start elasticsearch installed from packages on 13.0-release arm64

FreeBSD devbox 13.0-RELEASE-p4 FreeBSD 13.0-RELEASE-p4 #0: Tue Aug 24
07:38:07 UTC 2021
root@arm64-builder.daemonology.net:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC
 arm64

results in message from openjdk8


[root@develk /usr/ports/java/openjdk8]# service elasticsearch onestart
Starting elasticsearch.
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x000000004224b9a0, pid=14774, tid=0x0000000000018807
#
# JRE version:  (8.0_302-b08) (build )
# Java VM: OpenJDK 64-Bit Server VM (25.302-b08 mixed mode bsd-aarch64
compressed oops)
# Problematic frame:
# v  ~BufferBlob::native signature handlers
#
# Core dump written. Default location: //java.core
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid14774.log
#
# If you would like to submit a bug report, please visit:
#   https://bugs.freebsd.org/bugzilla/enter_bug.cgi?product=Ports%20%26%20Packages&component=Individual%20Port(s)&short_desc=java/openjdk8%3A%20
#
/usr/local/lib/elasticsearch/bin/elasticsearch-env: line 88: 14774
Abort trap              "$JAVA" "$XSHARE" -cp "$ES_CLASSPATH"
org.elasticsearch.tools.java_version_checker.JavaVersionChecker
/usr/local/etc/rc.d/elasticsearch: WARNING: failed to start elasticsearch

Best regards, happy new year,
AM