-
-
Notifications
You must be signed in to change notification settings - Fork 31k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-46920: Remove code made dead long ago with #if 0 #31681
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a0693cf
Remove code made dead long ago with #if 0
arhadthedev b4f6f13
Restore an original copy of libmpdec
arhadthedev f9b4ef0
Restore an original copy of libffi
arhadthedev e6c3092
Restore dump_* for bytecode debugging
arhadthedev 9927513
Remove code commented out 14-16 years ago
arhadthedev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1825,25 +1825,6 @@ Py_FinalizeEx(void) | |
status = -1; | ||
} | ||
|
||
/* Collect final garbage. This disposes of cycles created by | ||
* class definitions, for example. | ||
* XXX This is disabled because it caused too many problems. If | ||
* XXX a __del__ or weakref callback triggers here, Python code has | ||
* XXX a hard time running, because even the sys module has been | ||
* XXX cleared out (sys.stdout is gone, sys.excepthook is gone, etc). | ||
* XXX One symptom is a sequence of information-free messages | ||
* XXX coming from threads (if a __del__ or callback is invoked, | ||
* XXX other threads can execute too, and any exception they encounter | ||
* XXX triggers a comedy of errors as subsystem after subsystem | ||
* XXX fails to find what it *expects* to find in sys to help report | ||
* XXX the exception and consequent unexpected failures). I've also | ||
* XXX seen segfaults then, after adding print statements to the | ||
* XXX Python code getting called. | ||
*/ | ||
#if 0 | ||
_PyGC_CollectIfEnabled(); | ||
#endif | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I spent significant time to rework how the GC is called. The last call is now in interpreter_clear() of pystate.c. |
||
|
||
/* Disable tracemalloc after all Python objects have been destroyed, | ||
so it is possible to use tracemalloc in objects destructor. */ | ||
_PyTraceMalloc_Fini(); | ||
|
@@ -2424,7 +2405,6 @@ init_sys_streams(PyThreadState *tstate) | |
_PySys_SetAttr(&_Py_ID(stdout), std); | ||
Py_DECREF(std); | ||
|
||
#if 1 /* Disable this if you have trouble debugging bootstrap stuff */ | ||
/* Set sys.stderr, replaces the preliminary stderr */ | ||
fd = fileno(stderr); | ||
std = create_stdio(config, iomod, fd, 1, "<stderr>", | ||
|
@@ -2455,7 +2435,6 @@ init_sys_streams(PyThreadState *tstate) | |
goto error; | ||
} | ||
Py_DECREF(std); | ||
#endif | ||
|
||
goto done; | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is oudated and must be removed.