]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 14 May 2011 20:44:53 +0000 (22:44 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 14 May 2011 20:44:53 +0000 (22:44 +0200)
unused modules since currently referrence counter isn't reliable and
there isn't much memory to recover there anyway.

ChangeLog
grub-core/kern/mm.c

index 429467d02946548abef3639f237f2d89cc9efad7..a0efb24e8f405474adad9086b9cd4dea8c269ba8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-14  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
+       unused modules since currently referrence counter isn't reliable and
+       there isn't much memory to recover there anyway.
+
 2011-05-14  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
index 8d9b5db78ad6ccb9c1132f447c1893b356b3cd14..d54f3f240362d358b974d64f5210567053648056 100644 (file)
@@ -311,11 +311,13 @@ grub_memalign (grub_size_t align, grub_size_t size)
       count++;
       goto again;
 
+#if 0
     case 1:
       /* Unload unneeded modules.  */
       grub_dl_unload_unneeded ();
       count++;
       goto again;
+#endif
 
     default:
       break;