StaticQueue allocates and destroys objects.