KEMBAR78
gh-118518: Use the raw syscall directly for gettid by pablogsal · Pull Request #118592 · python/cpython · GitHub
Skip to content

Conversation

@pablogsal
Copy link
Member

@pablogsal pablogsal commented May 5, 2024

@pablogsal
Copy link
Member Author

!buildbot AMD64 RHEL8

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @pablogsal for commit a08d6b4 🤖

The command will test the builders whose names match following regular expression: AMD64 RHEL8

The builders matched are:

  • AMD64 RHEL8 LTO PR
  • AMD64 RHEL8 FIPS Only Blake2 Builtin Hash PR
  • AMD64 RHEL8 FIPS No Builtin Hashes PR
  • AMD64 RHEL8 PR
  • AMD64 RHEL8 Refleaks PR
  • AMD64 RHEL8 LTO + PGO PR

@pablogsal pablogsal enabled auto-merge (squash) May 5, 2024 10:26
@pablogsal pablogsal merged commit aeb36c5 into python:main May 5, 2024
@pablogsal pablogsal deleted the gettid branch May 5, 2024 12:37
ev.base.time_stamp = get_current_monotonic_ticks();
ev.process_id = getpid();
ev.thread_id = gettid();
ev.thread_id = syscall(SYS_gettid);
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps it would make sense to leverage the existing thread API, e.g. PyThread_get_thread_native_id()?

Copy link
Member Author

@pablogsal pablogsal May 6, 2024

Choose a reason for hiding this comment

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

I did that first but that has a check first for !initialized that calls PyThread_init_thread and that was causing problems when fork happens.

SonicField pushed a commit to SonicField/cpython that referenced this pull request May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants