comparison Python/pythonrun.c @ 87288:adb471b9cba1

ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'. Python now uses SipHash24 on all major platforms.
author Christian Heimes <christian@cheimes.de>
date Wed, 20 Nov 2013 11:46:18 +0100
parents 58ffd70d02b6
children 6e2089dbc5ad
comparison
equal deleted inserted replaced
87287:1300d94d6e88 87288:adb471b9cba1
102 extern void _PyUnicode_Fini(void); 102 extern void _PyUnicode_Fini(void);
103 extern int _PyLong_Init(void); 103 extern int _PyLong_Init(void);
104 extern void PyLong_Fini(void); 104 extern void PyLong_Fini(void);
105 extern int _PyFaulthandler_Init(void); 105 extern int _PyFaulthandler_Init(void);
106 extern void _PyFaulthandler_Fini(void); 106 extern void _PyFaulthandler_Fini(void);
107 extern void _PyHash_Fini(void);
107 108
108 #ifdef WITH_THREAD 109 #ifdef WITH_THREAD
109 extern void _PyGILState_Init(PyInterpreterState *, PyThreadState *); 110 extern void _PyGILState_Init(PyInterpreterState *, PyThreadState *);
110 extern void _PyGILState_Fini(void); 111 extern void _PyGILState_Fini(void);
111 #endif /* WITH_THREAD */ 112 #endif /* WITH_THREAD */
648 649
649 /* Debugging stuff */ 650 /* Debugging stuff */
650 #ifdef COUNT_ALLOCS 651 #ifdef COUNT_ALLOCS
651 dump_counts(stdout); 652 dump_counts(stdout);
652 #endif 653 #endif
654 /* dump hash stats */
655 _PyHash_Fini();
653 656
654 PRINT_TOTAL_REFS(); 657 PRINT_TOTAL_REFS();
655 658
656 #ifdef Py_TRACE_REFS 659 #ifdef Py_TRACE_REFS
657 /* Display all objects still alive -- this can invoke arbitrary 660 /* Display all objects still alive -- this can invoke arbitrary