Merge
authorsangheki
Tue, 07 Mar 2017 22:58:16 +0000
changeset 46314 f39171272d2b
parent 46311 7545c36a5e76 (diff)
parent 46313 b9a90f3d6b4a (current diff)
child 46315 a796c32af782
Merge
--- a/hotspot/src/share/vm/services/diagnosticCommand.cpp	Tue Mar 07 22:35:54 2017 +0000
+++ b/hotspot/src/share/vm/services/diagnosticCommand.cpp	Tue Mar 07 22:58:16 2017 +0000
@@ -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 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);