8011352: C1: TraceCodeBlobStacks crashes fastdebug Solaris SPARC.
authorneliasso
Fri, 29 Sep 2017 10:40:49 +0200
changeset 47560 e4a5b535c0d2
parent 47559 3a45532a1854
child 47561 f59f0e51ef8a
8011352: C1: TraceCodeBlobStacks crashes fastdebug Solaris SPARC. Summary: Handle null correctly Reviewed-by: roland, dlong, rbackman Contributed-by: patric.hedlin@oracle.com
src/hotspot/cpu/sparc/frame_sparc.cpp
--- a/src/hotspot/cpu/sparc/frame_sparc.cpp	Wed Sep 20 20:53:22 2017 -0700
+++ b/src/hotspot/cpu/sparc/frame_sparc.cpp	Fri Sep 29 10:40:49 2017 +0200
@@ -119,8 +119,8 @@
     reg = regname->as_Register();
   }
   if (reg->is_out()) {
-    assert(_younger_window != NULL, "Younger window should be available");
-    return second_word + (address)&_younger_window[reg->after_save()->sp_offset_in_saved_window()];
+    return _younger_window == NULL ? NULL :
+      second_word + (address)&_younger_window[reg->after_save()->sp_offset_in_saved_window()];
   }
   if (reg->is_local() || reg->is_in()) {
     assert(_window != NULL, "Window should be available");