On 5/10/07, Christoph Lameter <[email protected]> wrote:
Or are there valid reason to keep them around? It seems they were mainly
used for list management which required them to take a spinlock. Taking a
spinlock in a destructor is a bit risky since the slab allocators may run
the destructors anytime they decide a slab is no longer needed.
Or do we want to continue support destructors? If so why?
Well, constructors are on their way out too because they don't seem to
give the performance benefit they were designed for anymore. As for
destructors, they have been pretty useless in Linux for a long time
now and we really don't do much "complex initialization" that requires
undo (releasing resources).
Looks good to me.
Acked-by: Pekka Enberg <[email protected]>
Pekka
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]