From patchwork Fri Sep 6 13:54:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Nevill X-Patchwork-Id: 19802 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 63DBC24869 for ; Fri, 6 Sep 2013 13:54:33 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id x20sf3710115qcv.7 for ; Fri, 06 Sep 2013 06:54:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:subject:from:reply-to:to :cc:date:in-reply-to:references:organization:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe:content-type:content-transfer-encoding; bh=zTx0vsnJXVQnS2G4/n1DwbR51TuH+qyEV7vAYdzixYc=; b=E12+Mqz6LOjQmGkagTsgQp2b6GtScdDlK0cbFhEyrLXiVjAMRtgZEdepjmfqgXBJIF on6ispE+133P4bXP1XZIemeab6Or5DCfztvbW3lpxPI9kw1UnqeUrttHWH9mbigV5s+o 40LDsFEwzGScpDfYs7WQZFv2FVmzWsYFwKCap/QYnf5JYLeN7TN/TPZIjv8cVG7qGg74 3KY2LjZ/KBDZTPub+jmv2jRnV88p3BhZYi8yB03CZIhK88I6QCEy7M3D9KpLmLfH4VPo IEGeWKwJetfYK4daNbTsMmWiDB1wzC8B0zJrFhZFWYlGVArbFILyEFSEidF+lBxEszeJ hCnQ== X-Received: by 10.236.69.35 with SMTP id m23mr883219yhd.6.1378475673024; Fri, 06 Sep 2013 06:54:33 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.96.9 with SMTP id do9ls920099qeb.80.gmail; Fri, 06 Sep 2013 06:54:32 -0700 (PDT) X-Received: by 10.52.164.102 with SMTP id yp6mr2163427vdb.14.1378475672402; Fri, 06 Sep 2013 06:54:32 -0700 (PDT) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id tm8si785768vdc.111.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Sep 2013 06:54:32 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.172; Received: by mail-ve0-f172.google.com with SMTP id oz11so1625349veb.31 for ; Fri, 06 Sep 2013 06:54:32 -0700 (PDT) X-Gm-Message-State: ALoCoQmNig9K617VabGUfTtbEYbrVl4TsFdIzWxhQUt0Zbb1WeVldqfMCYVYj+Hj93v/OvgQ5Lkp X-Received: by 10.220.186.202 with SMTP id ct10mr2540361vcb.14.1378475672291; Fri, 06 Sep 2013 06:54:32 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp341598vcz; Fri, 6 Sep 2013 06:54:31 -0700 (PDT) X-Received: by 10.180.160.203 with SMTP id xm11mr10418715wib.17.1378475670876; Fri, 06 Sep 2013 06:54:30 -0700 (PDT) Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com [74.125.82.44]) by mx.google.com with ESMTPS id ll10si1146602wjb.109.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Sep 2013 06:54:30 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.44 is neither permitted nor denied by best guess record for domain of edward.nevill@linaro.org) client-ip=74.125.82.44; Received: by mail-wg0-f44.google.com with SMTP id b12so1900449wgh.35 for ; Fri, 06 Sep 2013 06:54:30 -0700 (PDT) X-Received: by 10.180.13.174 with SMTP id i14mr10539570wic.49.1378475670217; Fri, 06 Sep 2013 06:54:30 -0700 (PDT) Received: from [192.168.1.138] ([213.122.173.130]) by mx.google.com with ESMTPSA id a8sm19816820wie.6.1969.12.31.16.00.00 (version=SSLv3 cipher=RC4-SHA bits=128/128); Fri, 06 Sep 2013 06:54:29 -0700 (PDT) Message-ID: <1378475667.1845.11.camel@fleetfoot.lan> Subject: Re: [aarch64-port-dev ] Problematic frame: ~BufferBlob::InlineCacheBuffer From: Edward Nevill Reply-To: edward.nevill@linaro.org To: aarch64-port-dev@openjdk.java.net Cc: thuhc@yahoo.com, patches@linaro.org Date: Fri, 06 Sep 2013 14:54:27 +0100 In-Reply-To: <1378436530.18411.YahooMailNeo@web164604.mail.gq1.yahoo.com> References: <1377586601.4410.YahooMailNeo@web164602.mail.gq1.yahoo.com> <521F746B.7070602@redhat.com> <1377834622.83738.YahooMailNeo@web164605.mail.gq1.yahoo.com> <1378273140.42340.YahooMailNeo@web164604.mail.gq1.yahoo.com> <52270494.3010904@redhat.com> <1378354801.51578.YahooMailNeo@web164606.mail.gq1.yahoo.com> <5228397C.1080202@redhat.com> <1378436530.18411.YahooMailNeo@web164604.mail.gq1.yahoo.com> Organization: Linaro X-Mailer: Evolution 3.6.4 (3.6.4-3.fc18) Mime-Version: 1.0 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: edward.nevill@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , On Thu, 2013-09-05 at 20:02 -0700, Cao Hoang Thu wrote: > I only run test SPECjvm2008, it always happen this issue > > # > # A fatal error has been detected by the Java Runtime Environment: > # > # SIGILL (0x4) at pc=0x0000007f720b3120, pid=1798, tid=547509223952 > # > # JRE version: OpenJDK Runtime Environment (8.0) (build 1.8.0-internal-thcao_2013_09_05_09_35-b00) > # Java VM: OpenJDK 64-Bit Client VM (25.0-b22 mixed mode linux-aarch64 ) > # Problematic frame: > # v ~BufferBlob::InlineCacheBuffer > # Dear Cao Hoang Thu, I have managed to replicate this problem, but only when using the RTSM model which models the I cache and D cache behaviour rather than the foundation model. The patch below should fix this problem. Ed. --- CUT HERE --- exporting patch: # HG changeset patch # User Edward Nevill edward.nevill@linaro.org # Date 1378474791 -3600 # Fri Sep 06 14:39:51 2013 +0100 # Node ID 49648b3f8a17289d275a5291cb7364ca89261310 # Parent 6cb0224e9626d3767fe96bd05b55fda2a350b17e Fix ICache flusing problem found in RTSM diff -r 6cb0224e9626 -r 49648b3f8a17 src/cpu/aarch64/vm/icBuffer_aarch64.cpp --- a/src/cpu/aarch64/vm/icBuffer_aarch64.cpp Thu Sep 05 18:16:19 2013 +0100 +++ b/src/cpu/aarch64/vm/icBuffer_aarch64.cpp Fri Sep 06 14:39:51 2013 +0100 @@ -55,6 +55,8 @@ masm->b(ExternalAddress(entry_point)); masm->bind(l); masm->emit_int64((int64_t)cached_value); + // Only need to invalidate the 1st two instructions - not the whole ic stub + ICache::invalidate_range(code_begin, NativeInstruction::instruction_size * 2); 0; } --- CUT HERE ---