changeset 717:981375ca07b7 hs16-b01

6831604: missing null check in guarantee Reviewed-by: kvn
author never
date Fri, 17 Apr 2009 12:22:18 -0700
parents 4961a8a726a4
children 928912ce8438 a3fd9e40ff2e c8152ae3f339 2b6c55e36143
files src/share/vm/memory/dump.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/memory/dump.cpp	Wed Apr 15 21:31:46 2009 -0700
+++ b/src/share/vm/memory/dump.cpp	Fri Apr 17 12:22:18 2009 -0700
@@ -929,7 +929,8 @@
     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();