Allocate method hashtable at the beginning.