Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(154438)

Side by Side Diff: Python/pythonrun.c

Issue 18756: os.urandom() fails under high load
Patch Set: Created 6 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 1
2 /* Python interpreter top-level routines, including init/exit */ 2 /* Python interpreter top-level routines, including init/exit */
3 3
4 #include "Python.h" 4 #include "Python.h"
5 5
6 #include "Python-ast.h" 6 #include "Python-ast.h"
7 #undef Yield /* undefine macro conflicting with winbase.h */ 7 #undef Yield /* undefine macro conflicting with winbase.h */
8 #include "grammar.h" 8 #include "grammar.h"
9 #include "node.h" 9 #include "node.h"
10 #include "token.h" 10 #include "token.h"
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 PyTuple_Fini(); 618 PyTuple_Fini();
619 PyList_Fini(); 619 PyList_Fini();
620 PySet_Fini(); 620 PySet_Fini();
621 PyBytes_Fini(); 621 PyBytes_Fini();
622 PyByteArray_Fini(); 622 PyByteArray_Fini();
623 PyLong_Fini(); 623 PyLong_Fini();
624 PyFloat_Fini(); 624 PyFloat_Fini();
625 PyDict_Fini(); 625 PyDict_Fini();
626 PySlice_Fini(); 626 PySlice_Fini();
627 _PyGC_Fini(); 627 _PyGC_Fini();
628 _PyRandom_Fini();
628 629
629 /* Cleanup Unicode implementation */ 630 /* Cleanup Unicode implementation */
630 _PyUnicode_Fini(); 631 _PyUnicode_Fini();
631 632
632 /* reset file system default encoding */ 633 /* reset file system default encoding */
633 if (!Py_HasFileSystemDefaultEncoding && Py_FileSystemDefaultEncoding) { 634 if (!Py_HasFileSystemDefaultEncoding && Py_FileSystemDefaultEncoding) {
634 PyMem_RawFree((char*)Py_FileSystemDefaultEncoding); 635 PyMem_RawFree((char*)Py_FileSystemDefaultEncoding);
635 Py_FileSystemDefaultEncoding = NULL; 636 Py_FileSystemDefaultEncoding = NULL;
636 } 637 }
637 638
(...skipping 2115 matching lines...) Expand 10 before | Expand all | Expand 10 after
2753 #undef PyRun_InteractiveLoop 2754 #undef PyRun_InteractiveLoop
2754 PyAPI_FUNC(int) 2755 PyAPI_FUNC(int)
2755 PyRun_InteractiveLoop(FILE *f, const char *p) 2756 PyRun_InteractiveLoop(FILE *f, const char *p)
2756 { 2757 {
2757 return PyRun_InteractiveLoopFlags(f, p, NULL); 2758 return PyRun_InteractiveLoopFlags(f, p, NULL);
2758 } 2759 }
2759 2760
2760 #ifdef __cplusplus 2761 #ifdef __cplusplus
2761 } 2762 }
2762 #endif 2763 #endif
OLDNEW

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+