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

Use a Deque to avoid StackOverflow in ImmediateJobScheduler #5077

Merged
merged 4 commits into from
Jan 26, 2024

Conversation

nbauernfeind
Copy link
Member

This helps avoid StackOverflowErrors during select/update operations with many layers.

@nbauernfeind nbauernfeind added core Core development tasks NoDocumentationNeeded NoReleaseNotesNeeded No release notes are needed. labels Jan 26, 2024
@nbauernfeind nbauernfeind self-assigned this Jan 26, 2024
@nbauernfeind nbauernfeind force-pushed the immediate_job_sched branch 2 times, most recently from 6695cfd to 389006e Compare January 26, 2024 20:23
@nbauernfeind nbauernfeind requested a review from rcaudy January 26, 2024 21:36
@nbauernfeind nbauernfeind enabled auto-merge (squash) January 26, 2024 22:02
@@ -49,7 +51,7 @@ public void submit(
job.run();
}
} finally {
processingThread.set(null);
PROCESSING_THREAD_UPDATER.set(this, null);
Copy link
Member

Choose a reason for hiding this comment

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

This is OK, but you can also just do the assignment:

processingThread = null;

@nbauernfeind nbauernfeind merged commit 3a503a9 into deephaven:main Jan 26, 2024
19 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
core Core development tasks NoDocumentationNeeded NoReleaseNotesNeeded No release notes are needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants