From owner-svn-ports-head@freebsd.org Sun Jun 12 21:53:50 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 25763AF1485; Sun, 12 Jun 2016 21:53:50 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EAB942715; Sun, 12 Jun 2016 21:53:49 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u5CLrngI074234; Sun, 12 Jun 2016 21:53:49 GMT (envelope-from glewis@FreeBSD.org) Received: (from glewis@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u5CLrn7h074233; Sun, 12 Jun 2016 21:53:49 GMT (envelope-from glewis@FreeBSD.org) Message-Id: <201606122153.u5CLrn7h074233@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: glewis set sender to glewis@FreeBSD.org using -f From: Greg Lewis Date: Sun, 12 Jun 2016 21:53:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r416825 - head/java/openjdk8/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jun 2016 21:53:50 -0000 Author: glewis Date: Sun Jun 12 21:53:48 2016 New Revision: 416825 URL: https://svnweb.freebsd.org/changeset/ports/416825 Log: Handle unsafe operations that access invalid memory more gracefully PR: 209599 Submitted by: Andrew Smith Added: head/java/openjdk8/files/patch-hotspot-src-os_cpu-bsd_x86-vm-os_bsd_x86.cpp (contents, props changed) Added: head/java/openjdk8/files/patch-hotspot-src-os_cpu-bsd_x86-vm-os_bsd_x86.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/openjdk8/files/patch-hotspot-src-os_cpu-bsd_x86-vm-os_bsd_x86.cpp Sun Jun 12 21:53:48 2016 (r416825) @@ -0,0 +1,14 @@ +--- hotspot/src/os_cpu/bsd_x86/vm/os_bsd_x86.cpp.orig 2016-05-20 12:24:21.966092000 +0100 ++++ hotspot/src/os_cpu/bsd_x86/vm/os_bsd_x86.cpp 2016-05-20 12:46:40.522912000 +0100 +@@ -594,7 +596,11 @@ + stub = SharedRuntime::continuation_for_implicit_exception(thread, pc, SharedRuntime::IMPLICIT_NULL); + } + } else if (thread->thread_state() == _thread_in_vm && ++#ifdef __FreeBSD__ ++ (sig == SIGBUS || sig == SIGSEGV) && ++#else + sig == SIGBUS && /* info->si_code == BUS_OBJERR && */ ++#endif + thread->doing_unsafe_access()) { + stub = StubRoutines::handler_for_unsafe_access(); + }