Skip to content

fix: replace ConversationBufferLocks map with bounded cache - #94

Merged
starboyate merged 1 commit into
mainfrom
issue-89
May 27, 2026
Merged

starboyate merged 1 commit into
mainfrom
issue-89

Conversation

@me0106

@me0106 me0106 commented May 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace the unbounded session lock map with a bounded Caffeine cache.
  • Expire inactive lock sentinels after access to avoid unbounded growth.

Test Plan

  • JAVA_HOME=/Library/Java/JavaVirtualMachines/temurin-25.jdk/Contents/Home /opt/homebrew/bin/mvnd -pl memind-core -am test

Closes #89

@starboyate
starboyate merged commit 50453dc into main May 27, 2026
2 checks passed
@me0106
me0106 deleted the issue-89 branch August 13, 2026 08:40
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.

[Bug] ConversationBufferLocks.LOCKS 这个 map 会无限增长,每个 session 都留一个 entry 不删

2 participants