changed used context for memory collector thread