Skip to content

Deprecate ThreadLocalHelper.getTL(), add WeakThreadLocal #361

Open
@alamar

Description

@alamar

Currently, the ThreadLocalHelper.getTL(tl, lambda) encourages the passing of method reference/lambda created on the spot, which creates garbage. We should perhaps introduce a WeakThreadLocal class which will accept a supplier in the constructor, and also make reference type configurable (in some cases, soft reference may be preferable)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions