Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-29524: Add Objects/call.c file #12

Merged
merged 1 commit into from Feb 12, 2017
Merged

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Feb 11, 2017

  • Move all functions to call objects in a new Objects/call.c file.
  • Rename fast_function() to _PyFunction_FastCallKeywords().
  • Copy null_error() from Objects/abstract.c
  • Inline type_error() in call.c to not have to copy it, it was only called once.
  • Export _PyEval_EvalCodeWithName() since it is now called from call.c.

http://bugs.python.org/issue29524

* Move all functions to call objects in a new Objects/call.c file.
* Rename fast_function() to _PyFunction_FastCallKeywords().
* Copy null_error() from Objects/abstract.c
* Inline type_error() in call.c to not have to copy it, it was only
  called once.
* Export _PyEval_EvalCodeWithName() since it is now called
  from call.c.
@vstinner vstinner added the performance label Feb 11, 2017
inlines the most primitive frame setup code from
PyEval_EvalCodeEx(), which vastly reduces the checks that must be
done before evaluating the frame.
*/
Copy link
Member

@methane methane Feb 11, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment block should be moved to function_code_fastcall().

@vstinner
Copy link
Member Author

@vstinner vstinner commented Feb 11, 2017

Copy link
Member

@methane methane left a comment

I just checked all code is moved as-is.
I agree the comment block is not so important.

@vstinner
Copy link
Member Author

@vstinner vstinner commented Feb 12, 2017

@vstinner vstinner merged commit c22bfaa into python:master Feb 12, 2017
2 of 3 checks passed
@vstinner vstinner deleted the call_file branch Jun 15, 2017
@jdemeyer
Copy link
Contributor

@jdemeyer jdemeyer commented Jun 25, 2018

Follow-up at #7909

paulmon added a commit to paulmon/cpython that referenced this issue Jan 10, 2019
Windows arm32 - fix failing tests or skip
ethanhs added a commit to ethanhs/cpython that referenced this issue Mar 16, 2020
tiran added a commit to tiran/cpython that referenced this issue Nov 18, 2020
Direct leak of 57 byte(s) in 1 object(s) allocated from:

    #0 0x7fa6397cc667 in __interceptor_malloc (/lib64/libasan.so.6+0xb0667)
    #1 0x777579 in PyUnicode_New Objects/unicodeobject.c:1459
    #2 0x86aa4e in unicode_decode_utf8 Objects/unicodeobject.c:5129
    #3 0x8b6050 in PyUnicode_DecodeUTF8Stateful Objects/unicodeobject.c:5259
    #4 0x8b6050 in PyUnicode_FromString Objects/unicodeobject.c:2311
    #5 0x8b6050 in PyUnicode_InternFromString Objects/unicodeobject.c:15788
    #6 0x8f1e0b in create_filter Python/_warnings.c:67
    #7 0x8f1e0b in init_filters Python/_warnings.c:95
    #8 0x8f1e0b in _PyWarnings_InitState Python/_warnings.c:123
    python#9 0xa52178 in pycore_init_types Python/pylifecycle.c:704
    python#10 0xa52178 in pycore_interp_init Python/pylifecycle.c:760
    python#11 0xa5eab1 in pyinit_config Python/pylifecycle.c:807
    python#12 0xa5eab1 in pyinit_core Python/pylifecycle.c:970
    python#13 0xa60037 in Py_InitializeFromConfig Python/pylifecycle.c:1155
    python#14 0x47a842 in pymain_init Modules/main.c:66
    python#15 0x4802a2 in pymain_main Modules/main.c:698
    python#16 0x4802a2 in Py_BytesMain Modules/main.c:731
    python#17 0x7fa638a5b041 in __libc_start_main (/lib64/libc.so.6+0x27041)

Signed-off-by: Christian Heimes <christian@python.org>
isidentical referenced this issue in isidentical/cpython Jun 29, 2021
* Handle lines with multi-byte unicode characters properly

* Use Py_XDECREF instead of Py_DECREF

Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>

Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA signed performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants