瀏覽代碼

* prevent previously freed temp blocks from getting lost occasionally (can
significantly reduce the stack frame size, more than 3 times in one place
in the compiler)

git-svn-id: trunk@24025 -

Jonas Maebe 12 年之前
父節點
當前提交
4992fd1c88
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      compiler/tgobj.pas

+ 4 - 1
compiler/tgobj.pas

@@ -484,7 +484,10 @@ implementation
                      hp:=hprev;
                    end
                   else
-                   hprevfree^.nextfree:=hp;
+                   begin
+                     hp^.nextfree:=hprevfree^.nextfree;
+                     hprevfree^.nextfree:=hp;
+                   end;
                 end
                else
                 begin