< prev index next >

src/hotspot/share/runtime/os.cpp

Print this page
@@ -1246,10 +1246,12 @@
    }
  
    st->print_cr(INTPTR_FORMAT " is an unknown value", p2i(addr));
  }
  
+ // native stack isn't walkable for RISCV this way.
+ #if !defined(RISCV) || defined(ZERO)
  // Looks like all platforms can use the same function to check if C
  // stack is walkable beyond current frame.
  bool os::is_first_C_frame(frame* fr) {
  
  #ifdef _WINDOWS

@@ -1284,11 +1286,11 @@
    if (old_fp < ufp) return true;
    if (old_fp - ufp > 64 * K) return true;
  
    return false;
  }
- 
+ #endif
  
  // Set up the boot classpath.
  
  char* os::format_boot_path(const char* format_string,
                             const char* home,
< prev index next >