Grow the scanner stack before large debug expansion frames
This commit is contained in:
1 parent
41188bb912
commit
5ed56ef5b7
1 file changed
+2
-1
@@ -25,7 +25,8 @@ pub(super) fn enter<T>(scan: impl FnOnce() -> T) -> T {
|
||||
if SEGMENTED {
|
||||
// Scanner and expansion callbacks stay on the caller's thread.
|
||||
// Resource limits count TeX frames independently of the Rust stack.
|
||||
stacker::maybe_grow(128 * 1024, 1024 * 1024, scan)
|
||||
// Unoptimized expansion can use over 128 KiB in a single frame.
|
||||
stacker::maybe_grow(256 * 1024, 1024 * 1024, scan)
|
||||
} else {
|
||||
scan()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user