You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, of course that's possible. What I want to ask is, can it be automatically wrapped? For example, using a macro, as long as the method calls are inside the macro, each method call is converted to be wrapped in maybe_row before making the original call.
original call:
fncall1(){// code may cause stack overflow}fncall2(){call1();call1();call1();
......// many times of call1()}
usage:
// 4096/131072 is just a examplemaybe_grow!(4096,131072, call2)
expected effect:
fnenhanced_call2(){
stacker::maybe_grow(4096,131072, call1);
stacker::maybe_grow(4096,131072, call1);
stacker::maybe_grow(4096,131072, call1);
stacker::maybe_grow(4096,131072, call1);
......// many times of stacker::maybe_grow(4096,131072, call1);}
maybe_grow
in lib.rs, if it becomes full again after expansion, I believe it will receive aSIGBUS
/SIGSEGV
signal.Is it possible to increase the stack multiple times in the future?
The text was updated successfully, but these errors were encountered: