assert((uint)reason < _trap_hist_limit) failed: oob

Deneau, Tom tom.deneau at amd.com
Fri Dec 13 11:47:34 PST 2013


Gilles --

Yes this fixed it…

-- Tom

From: gilwooden at gmail.com [mailto:gilwooden at gmail.com] On Behalf Of Gilles Duboscq
Sent: Friday, December 13, 2013 12:33 PM
To: Deneau, Tom
Cc: graal-dev at openjdk.java.net
Subject: Re: assert((uint)reason < _trap_hist_limit) failed: oob

This patch should fix this:

-----8<----------------------------------------------------------
diff -r e1365fd16104 -r 63724649e19e src/share/vm/runtime/vframe.cpp
--- a/src/share/vm/runtime/vframe.cpp Fri Dec 13 16:39:06 2013 +0100
+++ b/src/share/vm/runtime/vframe.cpp           Fri Dec 13 19:31:10 2013 +0100
@@ -266,7 +266,7 @@

   // Get oopmap describing oops and int for current bci
   InterpreterOopMap oop_mask;
-  if (TraceDeoptimization && Verbose) {
+  if ((TraceDeoptimization && Verbose) GRAAL_ONLY( || PrintDeoptimizationDetails)) {
     methodHandle m_h(thread(), method());
     OopMapCache::compute_one_oop_map(m_h, bci(), &oop_mask);
   } else {
@@ -333,7 +333,7 @@

   InterpreterOopMap oop_mask;
   // Get oopmap describing oops and int for current bci
-  if (TraceDeoptimization && Verbose) {
+  if ((TraceDeoptimization && Verbose) GRAAL_ONLY( || PrintDeoptimizationDetails)) {
     methodHandle m_h(method());
     OopMapCache::compute_one_oop_map(m_h, bci(), &oop_mask);
   } else {
---------------------------------------------------------->8-----

Tell me if it helped.

-Gilles


On Fri, Dec 13, 2013 at 6:56 PM, Tom Deneau <tom.deneau at amd.com<mailto:tom.deneau at amd.com>> wrote:
Yes this trap_hist_limit problem is fixed.

I still see another assert failure if I use -XX:+PrintDeoptimizationDetails in fastdebug (with an example that does a deopt).
If you need my class files to reproduce let me know.

#  Internal Error (/home/tom/graal/src/share/vm/runtime/mutex.cpp:1364), pid=30164, tid=139715571808000
#  assert((!thread->is_Java_thread() || ((JavaThread *)thread)->thread_state() == _thread_in_vm) || rank() == Mutex::special) failed: wrong thread state for using locks
#
-- Tom


From: gilwooden at gmail.com<mailto:gilwooden at gmail.com> [mailto:gilwooden at gmail.com<mailto:gilwooden at gmail.com>] On Behalf Of Gilles Duboscq
Sent: Friday, December 13, 2013 11:25 AM
To: Deneau, Tom
Cc: graal-dev at openjdk.java.net<mailto:graal-dev at openjdk.java.net>
Subject: Re: assert((uint)reason < _trap_hist_limit) failed: oob

I can not see your attachment (I don't think the mailing list relays attachments) but this was fixed in http://hg.openjdk.java.net/graal/graal/rev/05de8cf71a41

-Gilles

On Fri, Dec 13, 2013 at 6:15 PM, Tom Deneau <tom.deneau at amd.com<mailto:tom.deneau at amd.com>> wrote:
Hello --

Running the attached class files with the following command line

./mx.sh --vm graal --vmbuild fastdebug vm  -XX:-BootstrapGraal -Xmx1g AryBounds

I get


# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/home/tom/graal/src/share/vm/oops/methodData.hpp:2196), pid=24304, tid=140302327252736
#  assert((uint)reason < _trap_hist_limit) failed: oob
#
# JRE version: Java(TM) SE Runtime Environment (7.0_21-b11) (build 1.7.0_21-b11)
# Java VM: OpenJDK 64-Bit Graal VM (25.0-b59-internal-fastdebug mixed mode linux-amd64 compressed oops)

-- Tom




More information about the graal-dev mailing list