File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -89,10 +89,16 @@ Object Protocol
8989
9090 Dump an object *op * to ``stderr ``. This should only be used for debugging.
9191
92- This function can be called without an :term: `attached thread state `, but it's not
93- recommended to do so.
94-
95- Implement a heuristic to detect if the object memory has been freed.
92+ The output is intended to try dumping objects even after memory corruption:
93+
94+ * Information is written starting with fields that are the least likely to
95+ crash when accessed.
96+ * This function can be called without an :term: `attached thread state `, but
97+ it's not recommended to do so: it can cause deadlocks.
98+ * An object that does not belong to the current interpreter may be dumped,
99+ but this may also cause crashes or unintended behavior.
100+ * Implement a heuristic to detect if the object memory has been freed. Don't
101+ display the object contents in this case, only its memory address.
96102
97103 Example of output:
98104
You can’t perform that action at this time.
0 commit comments