GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 4.x: Cache/Replay operators to be more GC friendly · Issue #7912 · ReactiveX/RxJava

4.x: Cache/Replay operators to be more GC friendly #7912

New issue
Copy link
New issue
Copy link
Open
Task
Open
4.x: Cache/Replay operators to be more GC friendly#7912
Task
Copy link
Labels
4.xEnhancement
Milestone
3.1-support

Description

@akarnokd
akarnokd
opened on Oct 2, 2025
Issue body actions

⚠️ Due to the unexpectedly long time this issue was up, we require you to target 4.x first and we'll see if it is worth backporting it to an earlier version.

The current implementations of the various cache and replay operators and hot sources can hold onto effectively unreachable elements longer than necessary, causing GC pressure with certain collectors.

The following operators need to be checked and updated.

  • ObservableCache
  • FlowableCache
  • ObservableReplay
  • FlowableReplay
  • ReplaySubject
  • ReplayProcessor

Activity

  1. akarnokd
    added this to the 3.1-support milestone on Oct 2, 2025
  2. akarnokd
    added
    Enhancement
    3.x
    on Oct 2, 2025
  3. akarnokd commented on Oct 2, 2025

    @akarnokd
    akarnokd
    on Oct 2, 2025
    MemberAuthor
    More actions

    ObservableCache - #7911

  4. akarnokd
    added
    4.x
    on Mar 18, 2026
  5. akarnokd
    added the
    Task
    issue type on Mar 19, 2026
  6. DragonFSKY commented on Jul 27, 2026

    @DragonFSKY
    DragonFSKY
    on Jul 27, 2026
    Contributor
    More actions

    I'd like to work on the FlowableCache item in #7912, using the ownership split from ObservableCache #7911 while preserving Flowable's per-subscriber request, cancellation, and serialized replay semantics. I'll add the same focused MemoryMXBean/System.gc regression test. Please let me know if someone is already working on this item.

    Reacted by David Karnok
  7. akarnokd commented on Jul 27, 2026

    @akarnokd
    akarnokd
    on Jul 27, 2026
    MemberAuthor
    More actions

    No one is working on these currently so go ahead 👍

  8. akarnokd
    removed
    3.x
    on Jul 27, 2026
  9. akarnokd
    changed the title [-]Cache/Replay operators to be more GC friendly[/-] [+]4.x: Cache/Replay operators to be more GC friendly[/+] on Jul 27, 2026
  10. akarnokd
    added a commit that references this issue on Oct 5, 2026

    Release cancelled replay consumers from their buffers (#8317)

    452b30c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    4.xEnhancement

    Type

    Task

    Projects

    No projects

      Milestone

      • 3.1-support

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.