move obj related header part into alloc.h