Explorar el Código

Avert potenital memory leak in adaptive JIT construction

jonathanvdc hace 8 años
padre
commit
536c898a92
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. 5 5
      kernel/modelverse_jit/jit.py

+ 5 - 5
kernel/modelverse_jit/jit.py

@@ -902,11 +902,11 @@ def compile_function_body_adaptive(
                              tree_ir.LoadGlobalInstruction(
                                  jit_runtime.JIT_COMPILE_FUNCTION_BODY_FAST_FUNCTION_NAME))]),
                         result_type=tree_ir.NO_RESULT_TYPE),
-                    tree_ir.create_jit_call(
-                        tree_ir.LoadGlobalInstruction(function_name),
-                        [(name, tree_ir.LoadLocalInstruction(name)) for name in parameter_list],
-                        tree_ir.LoadLocalInstruction(jit_runtime.KWARGS_PARAMETER_NAME),
-                        tree_ir.RunTailGeneratorFunctionInstruction)),
+                    bytecode_to_tree.create_return(
+                        tree_ir.create_jit_call(
+                            tree_ir.LoadGlobalInstruction(function_name),
+                            [(name, tree_ir.LoadLocalInstruction(name)) for name in parameter_list],
+                            tree_ir.LoadLocalInstruction(jit_runtime.KWARGS_PARAMETER_NAME)))),
                 tree_ir.EmptyInstruction())),
         tree_ir.EmptyInstruction())