8175341: "java/util/Arrays/ParallelPrefix.java" Crash Internal Error ...diagnosticCommand.cpp...assert(k != __null) failed: FinalizerHistogram class is not accessible
Allow the dcmd to fail with a pending exception rather than assert Reviewed-by: sspitsyn, dholmes
This commit is contained in:
parent
3e707c3671
commit
f91cc0cd42
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -420,10 +420,8 @@ void HeapInfoDCmd::execute(DCmdSource source, TRAPS) {
|
||||
void FinalizerInfoDCmd::execute(DCmdSource source, TRAPS) {
|
||||
ResourceMark rm;
|
||||
|
||||
|
||||
Klass* k = SystemDictionary::resolve_or_null(
|
||||
vmSymbols::finalizer_histogram_klass(), THREAD);
|
||||
assert(k != NULL, "FinalizerHistogram class is not accessible");
|
||||
Klass* k = SystemDictionary::resolve_or_fail(
|
||||
vmSymbols::finalizer_histogram_klass(), true, CHECK);
|
||||
|
||||
instanceKlassHandle klass(THREAD, k);
|
||||
JavaValue result(T_ARRAY);
|
||||
|
Loading…
x
Reference in New Issue
Block a user