Browse Source

* 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 years ago
parent
commit
4992fd1c88
1 changed files with 4 additions and 1 deletions
  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