diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-22 11:13:01 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-22 11:13:01 (GMT) |
commit | c9553876ae88b7f1494cff826c8f7a08c2ac5614 (patch) | |
tree | 63f4ec83ec78ca95db74b03bd033a4953d27d653 /Lib | |
parent | 0b2d71bc70c32560853fa91f58dc37af8f08090c (diff) | |
download | cpython-c9553876ae88b7f1494cff826c8f7a08c2ac5614.zip cpython-c9553876ae88b7f1494cff826c8f7a08c2ac5614.tar.gz cpython-c9553876ae88b7f1494cff826c8f7a08c2ac5614.tar.bz2 |
Simplify implementation of hashtable.c
Issue #26588: Remove copy_data, free_data and get_data_size callbacks from
hashtable.h. These callbacks are not used in Python and makes the code more
complex.
Remove also the _Py_HASHTABLE_ENTRY_DATA_AS_VOID_P() macro which uses an unsafe
pointer dereference (can cause memory alignment issue). Replace the macro usage
with _Py_HASHTABLE_ENTRY_READ_DATA() which is implemented with the safe
memcpy() function.
Diffstat (limited to 'Lib')
0 files changed, 0 insertions, 0 deletions