When a wrapped pattern gets collected, then the pair (a wrapped pattern - compiled pattern) is not needed. It is collected as well, because key of "collected" table is weak is a wrapped pattern is the key.