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

chore: allow run-time check of safety margin #353

Merged
merged 1 commit into from
Dec 25, 2024
Merged

chore: allow run-time check of safety margin #353

merged 1 commit into from
Dec 25, 2024

Conversation

romange
Copy link
Owner

@romange romange commented Dec 25, 2024

No description provided.

@romange romange requested a review from chakaz December 25, 2024 11:40
Any program with --fiber_safety_margin=<uint> will check its margins upon fiber destruction.
Moreover, it is possible to check stack programmatically by calling  `ThisFiber::CheckSafetyMargin()`
from places of interest.

if --fiber_safety_margin is 0, this call is a noop.

Signed-off-by: Roman Gershman <[email protected]>
Copy link
Collaborator

@chakaz chakaz left a comment

Choose a reason for hiding this comment

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

nice!

@romange romange merged commit 9bd97e6 into master Dec 25, 2024
5 checks passed
@romange romange deleted the Pr1 branch December 25, 2024 12:39
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.

2 participants