Alan Wu b5fa156b79 Clear all trace events during teardown
Since 0c2d81dada, not all trace events are cleared during VM teardown.
This causes a crash when there is a tracepoint for
`RUBY_INTERNAL_EVENT_GC_EXIT` active during teardown.

The commit looks like a refactoring commit so I think this change was
unintentional.

[Bug #16682]

(cherry picked from commit b385f7670ffa420790bc548747fa4b58c4c5d8f6)
2020-03-30 19:15:11 +09:00
..
2019-11-18 23:16:22 +09:00
2020-02-13 14:07:14 +09:00
…
2019-11-18 23:16:22 +09:00
2019-09-26 19:24:58 -07:00
…
2019-11-18 23:16:22 +09:00
…
2019-11-18 23:16:22 +09:00
…
2019-11-18 23:16:22 +09:00
2019-09-19 10:46:52 +09:00
2019-11-18 23:16:22 +09:00
…
…