Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Detect Py_TRACE_REFS at runtime and calculate object offsets accordingly#1426

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
lostmsu merged 1 commit intopythonnet:masterfromlosttech:bugs/Py_DEBUG
Apr 27, 2021

Conversation

lostmsu
Copy link
Member

What does this implement/fix? Explain your changes.

This gets rid of#if PYTHON_WITH_PYDEBUG by detecting if objects have reference tracing (e.g.Py_TRACE_REFS) enabled at runtime based on the offset of refcount field in a new object.

Does this close any currently open issues?

It shouldfix#1412

Any other comments?

Slight refactoring had to be done to ensure initialization code does not depend on knowing field offsets until they actually become available.

@lostmsulostmsuforce-pushed thebugs/Py_DEBUG branch 2 times, most recently fromde42b75 to689f0d8CompareMarch 31, 2021 06:36
Copy link
Contributor

@BadSingletonBadSingleton left a comment

Choose a reason for hiding this comment

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

LGTM

@lostmsulostmsu merged commitdb746aa intopythonnet:masterApr 27, 2021
@lostmsulostmsu deleted the bugs/Py_DEBUG branchApril 27, 2021 07:42
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@BadSingletonBadSingletonBadSingleton approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Unable to run with Python debug library
2 participants
@lostmsu@BadSingleton

[8]ページ先頭

©2009-2025 Movatter.jp