Skip to content

Fix InputStreamMonitor.writeNext() busy-spin after closeInputStream() - #765

Merged
robstryker merged 1 commit into
redhat-developer:masterfrom
robstryker:fix-input-stream-monitor-busy-spin
Sep 21, 2026
Merged

robstryker merged 1 commit into
redhat-developer:masterfrom
robstryker:fix-input-stream-monitor-busy-spin

Conversation

@robstryker

Copy link
Copy Markdown
Collaborator

Summary

Fixes #764

Test plan

  • Verify existing tests pass
  • Confirm that after closeInputStream(), the monitor thread parks in wait() instead of spinning

🤖 Generated with Claude Code

Remove !fClosed from the wait loop condition. After closeInputStream()
sets fClosed, the condition caused writeNext() to return immediately,
making the writeLoop() spin at full CPU until close() sets fThread
to null.

See: eclipse-platform/eclipse.platform#2882 (review)
Fixes redhat-developer#764

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@robstryker
robstryker merged commit d4448b6 into redhat-developer:master Sep 21, 2026
1 check 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.

InputStreamMonitor.writeNext() wait loop can busy-spin after closeInputStream()

1 participant