ruby/ext/objspace
nagachika 99c9aeef4b merge revision(s) b8a3f1bd45:
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
	---
	 ext/objspace/depend           | 1 +
	 ext/objspace/object_tracing.c | 7 +++++++
	 gc.h                          | 4 ++--
	 3 files changed, 10 insertions(+), 2 deletions(-)
2024-01-18 12:57:01 +09:00
..
lib [DOC] Fix format in ObjectSpace.dump_all 2022-12-12 10:16:38 -05:00
depend merge revision(s) b8a3f1bd45: 2024-01-18 12:57:01 +09:00
extconf.rb ext/objspace: Specify frozen_string_literal: true. 2017-02-12 04:31:25 +00:00
object_tracing.c merge revision(s) b8a3f1bd45: 2024-01-18 12:57:01 +09:00
objspace.c Move error from top_stmts and top_stmt to stmt 2022-10-08 17:59:11 +09:00
objspace.h * ext/objspace/object_tracing.c: Add experimental methods to dump 2013-11-08 17:06:55 +00:00
objspace_dump.c Indicate if a shape is too_complex in ObjectSpace#dump 2022-12-15 13:41:47 -08:00