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

Associate source code locations with current fiber instead of current thread. #1885

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

rsmmr
Copy link
Member

@rsmmr rsmmr commented Oct 14, 2024

This fixes potential location mix-ups when switching between fibers.
Note that we still need a context-wide fallback location as well
because we're not always running inside a fiber.

I ran a performance comparison before/after and couldn't measure a
difference. Looks like using TLS storage was a case of premature
optimization.

Closes #1868.

bbannier
bbannier previously approved these changes Oct 14, 2024
hilti/runtime/include/logging.h Show resolved Hide resolved
… thread.

This fixes potential location mix-ups when switching between fibers.
Note that we still need a context-wide fallback location as well
because we're not always running inside a fiber.

I ran a performance comparison before/after and couldn't measure a
difference. Looks like using TLS storage was a case of premature
optimization.

Closes #1868.
@rsmmr rsmmr force-pushed the topic/robin/gh-1868-locations branch from e0b16e3 to 01dc123 Compare October 14, 2024 13:07
@rsmmr rsmmr merged commit e6cb813 into main Oct 14, 2024
20 checks passed
@rsmmr rsmmr deleted the topic/robin/gh-1868-locations branch October 14, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch to per-fiber location information
2 participants