Project

General

Profile

« Previous | Next » 

Revision b8a3f1bd

Added by peterzhu2118 (Peter Zhu) almost 3 years ago

Fix crash in tracing object allocations

ObjectSpace.trace_object_allocations_start could crash since it adds a
TracePoint for when objects are freed. However, TracePoint could crash
since it modifies st tables while inside the GC that is trying to free
the object. This could cause a memory allocation to happen which would
crash if it triggers another GC.

See a crash log: http://ci.rvm.jp/results/trunk@ruby-sp1/4373707