Skip to content

Testing, do not merge — OOM fix CI run 1/9#282

Closed
djette-st wants to merge 1 commit intomainfrom
fix-oom-test-1
Closed

Testing, do not merge — OOM fix CI run 1/9#282
djette-st wants to merge 1 commit intomainfrom
fix-oom-test-1

Conversation

@djette-st
Copy link
Collaborator

This PR is only to trigger parallel CI builds. Do not merge.

CI stress test run for the OOM fix on branch fix-oom (#281).

- Recycle captured bitmap in createBitmapFromActivity() after saving to
  disk, eliminating ~9.6 MB leaked per test invocation
- Switch IntBuffer allocation from heap (IntBuffer.allocate) to native
  memory (ByteBuffer.allocateDirect) to bypass JVM heap constraints
- Add overflow guard for large capacity * INTEGER_BYTES computations
- Wrap ParallelPixelProcessor analyze() and transform() in try/finally
  to guarantee buffer cleanup on exceptions
- Recycle diff bitmap in HighContrastDiff.generate() after saving
- Update ImageBufferTest to reflect direct buffer allocation behavior
@djette-st djette-st closed this Mar 15, 2026
@djette-st djette-st deleted the fix-oom-test-1 branch March 15, 2026 18:18
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