I just moved this logic from CodeUnitPool as is. Didn't really pay attention to to initialization. :)