gh-104028: Reduce object creation while calling callback function from gc (gh-104030)

2 files changed