Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplified URLResource cleaner #10061

Merged
merged 3 commits into from
Jul 5, 2023

Commits on Jul 4, 2023

  1. Simplified URLResource cleaner

    The reference to the InputStream does not need to be soft/weak as a hard reference to it does not prevent the URLResource itself from being collected.  Also by making a runnable record, there is one less allocation per input stream creation.
    gregw committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    fde5b9a View commit details
    Browse the repository at this point in the history
  2. Simplified URLResource cleaner

    Use AtomicReference for the inputstream, so that if it is taken, then it is nulled and will not be closed.
    gregw committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    b543946 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2023

  1. Simplified URLResource cleaner

    Improved tests
    gregw committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    1be8a2a View commit details
    Browse the repository at this point in the history