Skip to content

Replace custom classloader with hidden classes in Painless #102955

Open
@rjernst

Description

@rjernst

Painless currently creates a unique classloader for every compiled script. Since Java 15 the JVM has supported hidden classes, a way to load a dynamically created class at runtime without needing a new classloader. Painless should replace it's Loader with loading a hidden class.

See apache/lucene#12873 for how Lucene did the same thing for the expressions Javascript compiler there.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions