changeset 26578:1cb9e59a06ab

8053886: assert(false) failed: Should not allocate with exception pending Summary: Failure caused by allocating method counters. Changed the way counters are allocated (use get_method_counters() instead of build_method_counters()) Reviewed-by: kvn, thartmann, anoll
author zmajo
date Fri, 05 Sep 2014 16:07:22 +0200
parents 84fbba16cb3b
children 522d6486f410
files hotspot/src/share/vm/runtime/sweeper.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/src/share/vm/runtime/sweeper.cpp	Thu Sep 04 23:49:17 2014 -0700
+++ b/hotspot/src/share/vm/runtime/sweeper.cpp	Fri Sep 05 16:07:22 2014 +0200
@@ -618,7 +618,7 @@
         if (mc == NULL) {
           // Sometimes we can get here without MethodCounters. For example if we run with -Xcomp.
           // Try to allocate them.
-          mc = Method::build_method_counters(nm->method(), Thread::current());
+          mc = nm->method()->get_method_counters(Thread::current());
         }
         if (mc != NULL) {
           // Snapshot the value as it's changed concurrently