Skip to content

Conversation

@zcoo
Copy link
Contributor

@zcoo zcoo commented May 30, 2025

Purpose

When public void returnAll(List<MemorySegment> memory) {
returns memory segment, it polls the first waiter and wakes it up in Deque to judge if freePages is less than requiredPages. If not, this waiter calls await() again and will no longer be waked up. This should cause memory allocation stuck and can't recover.

Brief change log

Tests

API and Format

Documentation

Copy link
Contributor

@swuferhong swuferhong left a comment

Choose a reason for hiding this comment

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

LGTM

@swuferhong swuferhong merged commit 713efcf into apache:main May 30, 2025
4 checks passed
polyzos pushed a commit to polyzos/fluss that referenced this pull request Jun 6, 2025
polyzos pushed a commit to polyzos/fluss that referenced this pull request Jun 6, 2025
ZmmBigdata pushed a commit to ZmmBigdata/fluss that referenced this pull request Jun 20, 2025
polyzos pushed a commit to polyzos/fluss that referenced this pull request Aug 30, 2025
polyzos pushed a commit to Alibaba-HZY/fluss that referenced this pull request Aug 31, 2025
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