Closed
Description
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.