head 1.2; access; symbols; locks; strict; comment @// @; 1.2 date 2018.09.15.02.51.02; author ryoon; state dead; branches; next 1.1; commitid JMty5j1yhx4X89SA; 1.1 date 2018.08.20.17.24.00; author tnn; state Exp; branches; next ; commitid 0paoycep5hJJNSOA; desc @@ 1.2 log @Update to 1.8.181 Changelog: Fixed: CVE-2018-2938 CVE-2018-2964 CVE-2018-2941 CVE-2018-2942 CVE-2018-2972 CVE-2018-2973 CVE-2018-2940 CVE-2018-2952 @ text @$NetBSD: patch-hotspot_src_share_vm_utilities_nativeCallStack.cpp,v 1.1 2018/08/20 17:24:00 tnn Exp $ clang>6 fixes. Ref: http://mail.openjdk.java.net/pipermail/bsd-port-dev/2018-May/003177.html --- hotspot/src/share/vm/utilities/nativeCallStack.cpp.orig 2018-05-26 23:58:31.000000000 +0000 +++ hotspot/src/share/vm/utilities/nativeCallStack.cpp @@@@ -27,7 +27,10 @@@@ #include "utilities/globalDefinitions.hpp" #include "utilities/nativeCallStack.hpp" -const NativeCallStack NativeCallStack::EMPTY_STACK(0, false); +const NativeCallStack& NativeCallStack::EMPTY_STACK() { + static const NativeCallStack empty(0, false); + return empty; +} NativeCallStack::NativeCallStack(int toSkip, bool fillStack) : _hash_value(0) { @ 1.1 log @openjdk8: apply upstream changeset be59128afb76 (fixes SEGV w/ clang>=6) @ text @d1 1 a1 1 $NetBSD$ @