Skip to content

Commit f622ce5

Browse files
committed
disable under madsim
Signed-off-by: Bugen Zhao <[email protected]>
1 parent 0effb4b commit f622ce5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/common/src/util/recursive.rs

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
//! Track the recursion and grow the stack when necessary to enable fearless recursion.
16+
1517
use std::cell::RefCell;
1618

1719
// See documentation of `stacker` for the meaning of these constants.
@@ -92,6 +94,7 @@ impl Tracker {
9294
}
9395

9496
let _guard = DepthGuard::new(&self.depth);
97+
#[cfg(not(madsim))] // madsim does not support stack growth
9598
stacker::maybe_grow(RED_ZONE, STACK_SIZE, f)
9699
}
97100
}

0 commit comments

Comments
 (0)