mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Add predicted stack overflow warning (#4799).
This commit is contained in:
parent
0ca90257a5
commit
68e4eeb53e
@ -3015,7 +3015,7 @@ void Verilated::stackCheck(QData needSize) VL_MT_UNSAFE {
|
||||
// if the user follows the suggestions
|
||||
if (VL_UNLIKELY(haveSize && needSize && haveSize < (needSize + needSize / 2))) {
|
||||
VL_PRINTF_MT("%%Warning: System has stack size %" PRIu64 " kb"
|
||||
" which may be too small; suggest at least 'ulimit -c %" PRIu64 "'\n",
|
||||
" which may be too small; suggest 'ulimit -c %" PRIu64 "' or larger\n",
|
||||
haveSize / 1024, (needSize * 2) / 1024);
|
||||
}
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user