# HG changeset patch # User neliasso # Date 1506674449 -7200 # Node ID e4a5b535c0d2e946b8391bcbb923d5f89a5d7cc6 # Parent 3a45532a1854fe0543d24d5ae8a3dcff4ec19f8f 8011352: C1: TraceCodeBlobStacks crashes fastdebug Solaris SPARC. Summary: Handle null correctly Reviewed-by: roland, dlong, rbackman Contributed-by: patric.hedlin@oracle.com diff -r 3a45532a1854 -r e4a5b535c0d2 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");