We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0effb4b commit f622ce5Copy full SHA for f622ce5
src/common/src/util/recursive.rs
@@ -12,6 +12,8 @@
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
+//! Track the recursion and grow the stack when necessary to enable fearless recursion.
16
+
17
use std::cell::RefCell;
18
19
// See documentation of `stacker` for the meaning of these constants.
@@ -92,6 +94,7 @@ impl Tracker {
92
94
}
93
95
96
let _guard = DepthGuard::new(&self.depth);
97
+ #[cfg(not(madsim))] // madsim does not support stack growth
98
stacker::maybe_grow(RED_ZONE, STACK_SIZE, f)
99
100
0 commit comments