Use separate virtual function call to clear out stack variables and make gc test more reliable.