From 35bca0df61ed73174ac674e99aa9fabfa2b15f88 Mon Sep 17 00:00:00 2001 From: Zoltan Majo Date: Fri, 5 Sep 2014 16:07:22 +0200 Subject: [PATCH] 8053886: assert(false) failed: Should not allocate with exception pending 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 --- hotspot/src/share/vm/runtime/sweeper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotspot/src/share/vm/runtime/sweeper.cpp b/hotspot/src/share/vm/runtime/sweeper.cpp index 0a964ac8728..10ec6ff05dc 100644 --- a/hotspot/src/share/vm/runtime/sweeper.cpp +++ b/hotspot/src/share/vm/runtime/sweeper.cpp @@ -618,7 +618,7 @@ void NMethodSweeper::possibly_flush(nmethod* nm) { 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