Skip to content

Fix stale workspace pointers in reused thread queues - #5956

Merged
martin-frbg merged 8 commits into
OpenMathLib:developfrom
moluopro:fix-openmp-exec-buffer-lifetime
Aug 5, 2026
Merged

Fix stale workspace pointers in reused thread queues#5956
martin-frbg merged 8 commits into
OpenMathLib:developfrom
moluopro:fix-openmp-exec-buffer-lifetime

Conversation

@moluopro

@moluopro moluopro commented Aug 4, 2026

Copy link
Copy Markdown
Contributor
  • Prevent thread queues from reusing stale workspace pointers.
  • Apply the fix to the pthread, OpenMP, and Windows backends, with callback regression coverage.

@moluopro

moluopro commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

Reused thread queues may retain stale workspaces, causing intermittent computation errors and flaky CI failures.

@martin-frbg

Copy link
Copy Markdown
Collaborator

Oops, would it be that simple ? This problem has been noticed already in #1851 (at least), and forced reverting of #4741 as I didn't manage to get my head around the buffer reuse happening in both level2 and level3 code

@martin-frbg martin-frbg added this to the 0.3.35 milestone Aug 4, 2026
@martin-frbg
martin-frbg merged commit 0c5fc45 into OpenMathLib:develop Aug 5, 2026
112 of 113 checks passed
@moluopro
moluopro deleted the fix-openmp-exec-buffer-lifetime branch August 5, 2026 08:34
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