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

Fix race condition in FilterX simple funcs and perf improvements #257

Merged
merged 8 commits into from
Aug 29, 2024

Conversation

MrAnno
Copy link
Member

@MrAnno MrAnno commented Aug 23, 2024

2 race conditions have been fixed around FilterXFunctionArgs:

  • retrieved field should not be changed during eval
  • expression ref()/unref() calls should not be called during eval

Depends on #252

@MrAnno MrAnno force-pushed the fix-simple-func-race branch 2 times, most recently from 246f5f7 to eeefc6c Compare August 23, 2024 13:16
@MrAnno MrAnno requested review from bshifter and bazsi August 23, 2024 13:16
@MrAnno MrAnno force-pushed the fix-simple-func-race branch 2 times, most recently from aa2cf22 to 26602d1 Compare August 23, 2024 14:23
@MrAnno MrAnno requested review from alltilla and removed request for bazsi August 26, 2024 10:37
bshifter
bshifter previously approved these changes Aug 29, 2024
@MrAnno MrAnno removed the request for review from alltilla August 29, 2024 13:41
This reverts commit fe5828f.

Signed-off-by: László Várady <[email protected]>
This also fixes a race condition in _simple_eval().

Signed-off-by: László Várady <[email protected]>
These are not thread-safe functions, but they would never be correctly
used on a single thread (main thread) due to their nature, so removing them
avoids confusion.

Signed-off-by: László Várady <[email protected]>
This also fixes a race-condition related to the "retrieved" field of
FilterXFunctionArgs.

Signed-off-by: László Várady <[email protected]>
@bshifter bshifter merged commit 21585b8 into axoflow:main Aug 29, 2024
22 checks passed
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