@Override
  public void visitMaxs(int maxStack, int maxLocals) {
    if (localScopes != null) {
      for (VariableScope scope : localScopes) {
        super.visitLocalVariable(
            "xxxxx$" + scope.index, scope.desc, null, scope.start, scope.end, scope.index);
      }
    }
    super.visitMaxs(maxStack, maxLocals);
  }
Called by the ASM framework once the class is done being visited to compute stack & local
variable count maximums.
src/main/java/com/google/monitoring/runtime/instrumentation/AllocationMethodAdapter.java