Skip to content

Commit 1b07fac

Browse files
Apply suggestions from code review
Co-authored-by: Adam Turner <[email protected]>
1 parent a4ffb9e commit 1b07fac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

InternalDocs/stack_protection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The C stack looks like this:
3030
```
3131

3232

33-
We get the current stack pointer using compiler intrinsics where available, or by taking the address of a (C) local variable. See `_Py_get_machine_stack_pointer()`.
33+
We get the current stack pointer using compiler intrinsics where available, or by taking the address of a C local variable. See `_Py_get_machine_stack_pointer()`.
3434

3535
The soft and hard limits pointers are set by calling `_Py_InitializeRecursionLimits()` during thread initialization.
3636

@@ -55,7 +55,7 @@ Either a recursive call is not checking `_Py_EnterRecursiveCall()`, or the amoun
5555

5656
Likely causes:
5757
* Recursive code is not calling `_Py_EnterRecursiveCall()`
58-
* -O0 compilation flags, especially for Clang. With no optimization, C calls can consume a lot of stack space
58+
* `-O0` compilation flags, especially for Clang. With no optimization, C calls can consume a lot of stack space
5959
* Giant, complex functions in third-party C extensions. This is unlikely as the function in question would need to be more complicated than the bytecode interpreter.
6060
* `_PyOS_STACK_MARGIN_BYTES` is just too low.
6161
* `_Py_InitializeRecursionLimits()` is not setting the soft and hard limits correctly for that platform.

0 commit comments

Comments
 (0)