Merge pull request #5206 from alexrp/profiler-gc-base-init