Skip to content

Rewrite computeMaxLocalsMaxStack, make it more efficient #1

Closed
@retronym

Description

@retronym

Before running an ASM Analyzer, the maxLocals and maxStack values of the MethodNode need to be computed (the analyzer pre-allocates frame values).

ASM computes these values while serializing the method, so we currently run a ClassWriter on the method, which is inefficient.

http://mail-archive.ow2.org/asm/2014-10/msg00004.html

Instead we should write a custom visitor that computes the max values.

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