changed vector access to permit hooks for a write barrier