Ver Fonte

* 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 há 12 anos atrás
pai
commit
4992fd1c88
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      compiler/tgobj.pas

+ 4 - 1
compiler/tgobj.pas

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