summaryrefslogtreecommitdiffstats
path: root/Grammar
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-19 02:12:48 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-09-19 02:12:48 (GMT)
commit3924f93794fd740c547b44884f73303196475cd5 (patch)
tree47e84635ef786ae5b6c5ed134b4daf3f85e51a64 /Grammar
parentac965ca16c59308fdafbeff9e36dfaf06505a512 (diff)
downloadcpython-3924f93794fd740c547b44884f73303196475cd5.zip
cpython-3924f93794fd740c547b44884f73303196475cd5.tar.gz
cpython-3924f93794fd740c547b44884f73303196475cd5.tar.bz2
improvements to code that checks whether Python (obmalloc) allocated an address
- Rename Py_ADDRESS_IN_RANGE to address_in_range and make it a static function instead of macro. Any compiler worth its salt will inline this function. - Remove the duplicated function version of Py_ADDRESS_IN_RANGE used when memory analysis was active. Instead, we can simply mark address_in_range as allergic to dynamic memory checking. We can now remove the __attribute__((no_address_safety_analysis)) from _PyObject_Free and _PyObject_Realloc. All the badness is contained in address_in_range now. - Fix the code that tried to only read pool->arenaindex once. Putting something in a variable is no guarantee that it won't be read multiple times. We must use volatile for that.
Diffstat (limited to 'Grammar')
0 files changed, 0 insertions, 0 deletions