Skip to content

OutOfMemoryError due to LineEndingsPolicy in JvmLocalCache #2067

@jhonnen

Description

@jhonnen

I'm seeing sporadic OutOfMemoryErrors caused by the data retained in JvmLocalCache:
image

The large retention is caused by Gradle internal objects referenced by the line endings policy:
image

Gradle 8.6 with enabled configuration cache
Spotless Gradle 6.25.0
Windows 11

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