8000 gh-117139: Add header for tagged pointers by Fidget-Spinner · Pull Request #118330 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-117139: Add header for tagged pointers #118330

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

Merged
merged 19 commits into from
Apr 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

8000
Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix Windows build
  • Loading branch information
Fidget-Spinner committed Apr 30, 2024
commit 5961992d5b62c8999153b5cb3f55e58983276c5c
3 changes: 2 additions & 1 deletion Include/internal/pycore_stackref.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ extern "C" {
#endif

#include <stddef.h>
#include "pycore_gc.h"

// Mark an object as supporting deferred reference counting. This is a no-op
// in the default (with GIL) build. Objects that use deferred reference
Expand All @@ -29,7 +30,7 @@ typedef union {
uintptr_t bits;
} _PyStackRef;

static const _PyStackRef Py_STACKREF_NULL = ((_PyStackRef) { .bits = (uintptr_t)NULL });
static const _PyStackRef Py_STACKREF_NULL = ((_PyStackRef) { .bits = 0 });

#ifdef Py_GIL_DISABLED
#define Py_TAG_DEFERRED (1)
Expand Down
0