mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
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
This commit is contained in:
parent
f8eeba1ce4
commit
35bca0df61
1 changed files with 1 additions and 1 deletions
|
@ -618,7 +618,7 @@ void NMethodSweeper::possibly_flush(nmethod* nm) {
|
||||||
if (mc == NULL) {
|
if (mc == NULL) {
|
||||||
// Sometimes we can get here without MethodCounters. For example if we run with -Xcomp.
|
// Sometimes we can get here without MethodCounters. For example if we run with -Xcomp.
|
||||||
// Try to allocate them.
|
// Try to allocate them.
|
||||||
mc = Method::build_method_counters(nm->method(), Thread::current());
|
mc = nm->method()->get_method_counters(Thread::current());
|
||||||
}
|
}
|
||||||
if (mc != NULL) {
|
if (mc != NULL) {
|
||||||
// Snapshot the value as it's changed concurrently
|
// Snapshot the value as it's changed concurrently
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue