memory defence mechanisms