diff options
| author | Christian Tismer <tismer@stackless.com> | 2020-03-28 18:59:00 +0100 |
|---|---|---|
| committer | Christian Tismer <tismer@stackless.com> | 2020-03-30 17:58:29 +0200 |
| commit | d77a90d4ef30d311dea39a7f4c3399e4363cc1b7 (patch) | |
| tree | ce595f825b9a7533935618022dcc3dde12b06ef0 /sources/shiboken2/ApiExtractor/clangparser/compilersupport.cpp | |
| parent | b28ce21f046ba3e87b12208621c3d9ae6a295944 (diff) | |
shiboken: Update sbkstring to use PyUnicode_GetLength
The unicode implementation has changed very much.
PyUnicode_GET_SIZE has been used all the time, although this
macro is already a quite expensive real function since Python 3.3 .
The function is deprecated, and the macro PyUnicode_GET_LENGTH
should be used, instead.
This is relevant for cleaning things up, because in the course of
fixing PYSIDE-813 we work with debug Python, which then complains
that Python memory is used without holding the GIL.
The usage of the right implementation was ensured by a function
PepUnicode_GetLength and removing all traces of the former version.
Task-number: PYSIDE-813
Change-Id: I62e94e10e14975dac3dad0ed1fffec8a1b54a0d5
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/clangparser/compilersupport.cpp')
0 files changed, 0 insertions, 0 deletions
