Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: apache/logging-log4j2
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: rel/2.24.1
Choose a base ref
...
head repository: apache/logging-log4j2
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: rel/2.24.2
Choose a head ref
  • 6 commits
  • 18 files changed
  • 3 contributors

Commits on Nov 15, 2024

  1. Configuration menu
    Copy the full SHA
    3fc2088 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2024

  1. Removes weak references from LoggerRepository (2.24.x branch) (#3209

    )
    
    This is a port of #3199 to the 2.24.x branch.
    
    Removes weak references to `Logger`s in `LoggerRepository`.
    The usage of weak references in `LoggerRepository` might cause `null` to be returned by `LogManager.getLogger()` of all Log4j Core versions up to `2.24.1`.
    Versions of Log4j API up to `2.24.0` did hold **hard** references to all the registered loggers, so the change will not alter the previous behavior.
    
    This PR also inverts the order of the `String` and `MessageFactory` keys to the `LoggerRepository` multi-map to limit the number of internal maps. The external map is a `WeakHashMap` to allow logger-specific message factories to be GC-ed.
    
    Closes #3143.
    
    Co-authored-by: Volkan Yazıcı <volkan@yazi.ci>
    ppkarwasz and vy authored Nov 18, 2024
    Configuration menu
    Copy the full SHA
    a1dfa85 View commit details
    Browse the repository at this point in the history
  2. Fix key removal issues in Thread Context (#3210)

    This backports #3050 to the 2.24.x branch.
    
    Co-authored-by: Volkan Yazıcı <volkan@yazi.ci>
    ppkarwasz and vy authored Nov 18, 2024
    Configuration menu
    Copy the full SHA
    81e1f06 View commit details
    Browse the repository at this point in the history
  3. Fix off-by-one in StackTraceStringResolver (#3216)

    Fixes #3194, ports #3212.
    vy authored Nov 18, 2024
    Configuration menu
    Copy the full SHA
    efba2fb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ae1137b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e65538d View commit details
    Browse the repository at this point in the history
Loading