* 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.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-05-14 22:44:53 +02:00
parent 576881217f
commit de04eecfa9
2 changed files with 8 additions and 0 deletions

View file

@ -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> 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter

View file

@ -311,11 +311,13 @@ grub_memalign (grub_size_t align, grub_size_t size)
count++; count++;
goto again; goto again;
#if 0
case 1: case 1:
/* Unload unneeded modules. */ /* Unload unneeded modules. */
grub_dl_unload_unneeded (); grub_dl_unload_unneeded ();
count++; count++;
goto again; goto again;
#endif
default: default:
break; break;