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

Dynamic event pools #771

Merged
merged 19 commits into from
Feb 20, 2024
Merged

Dynamic event pools #771

merged 19 commits into from
Feb 20, 2024

Conversation

pvelesko
Copy link
Collaborator

@pvelesko pvelesko commented Feb 13, 2024

  • Fix event refcounts

  • Switch to using an event stack for handling events inside an event pool

  • Event pools now start small and double as needed to prevent generation of many events for small test cases

  • Get rid of CallbackEventMonitor and use a single thread to handle all other activities such as event monitoring, callbacks, event pool management (if needed in the future)

  • replace all "Event use after delete" asserts with a new function isDeletedSanityCheck() which does nothing in Release. Call this function at every event member function.

  • check.py add --total-runtime=x option. Given a number of minutes, run tests once to estimate the runtime and then calculate the --num-tries to fill the time allotted.

@pvelesko pvelesko marked this pull request as draft February 13, 2024 07:14
@pvelesko pvelesko force-pushed the dynamic-event-pools branch 3 times, most recently from 56c8894 to c62f1c9 Compare February 19, 2024 05:41
@pvelesko pvelesko marked this pull request as ready for review February 19, 2024 07:24
@pvelesko pvelesko force-pushed the dynamic-event-pools branch from c62f1c9 to 07375a7 Compare February 20, 2024 03:22
as opposed to using multiple threads for calblacks and event monitoring
@pvelesko pvelesko merged commit d1be342 into main Feb 20, 2024
26 of 27 checks passed
@pvelesko pvelesko deleted the dynamic-event-pools branch February 23, 2024 14:04
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.

1 participant