From 751885a6ff6de43ffbc1dcf68e6c4e444622cbf3 Mon Sep 17 00:00:00 2001 From: never Date: Fri, 17 Apr 2009 12:22:18 -0700 Subject: [PATCH] 6831604: missing null check in guarantee Reviewed-by: kvn --- src/share/vm/memory/dump.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/share/vm/memory/dump.cpp b/src/share/vm/memory/dump.cpp index f66973328..658e83476 100644 --- a/src/share/vm/memory/dump.cpp +++ b/src/share/vm/memory/dump.cpp @@ -929,7 +929,8 @@ public: guarantee(SystemDictionary::constraints()->number_of_entries() == 0, "loader constraints are not saved"); // Revisit and implement this if we prelink method handle call sites: - guarantee(SystemDictionary::invoke_method_table()->number_of_entries() == 0, + guarantee(SystemDictionary::invoke_method_table() == NULL || + SystemDictionary::invoke_method_table()->number_of_entries() == 0, "invoke method table is not saved"); GenCollectedHeap* gch = GenCollectedHeap::heap(); -- GitLab