8011352: C1: TraceCodeBlobStacks crashes fastdebug Solaris SPARC.
Summary: Handle null correctly
Reviewed-by: roland, dlong, rbackman
Contributed-by: patric.hedlin@oracle.com
--- 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");