pkg: move active_list structure out of pkg_t
authorJo-Philipp Wich <jo@mein.io>
Mon, 13 Feb 2017 13:31:24 +0000 (14:31 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 13 Feb 2017 16:14:47 +0000 (17:14 +0100)
The active list head is only used by a tiny fraction of the allocated
package structures in memory so do not waste heap memory by allocating
space for it in all loaded packages.

Instead allocate active list heads dynamically where needed and point
them to the corresponding packages.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

No differences found