adjust TOTAL_MEMORY at runtime, to take into account last minute changes to Module.TOTAL_MEMORY