changeset 2538:1ecc4413e7e7

6831604: missing null check in guarantee Reviewed-by: kvn
author never
date Fri, 17 Apr 2009 12:22:18 -0700
parents bc0063aa5b7f
children 5bef15d9d54a a62b5317b682 9e8daec25638 84d9ff956137
files hotspot/src/share/vm/memory/dump.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/src/share/vm/memory/dump.cpp	Wed Apr 15 21:31:46 2009 -0700
+++ b/hotspot/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();