Actions
Bug #5171
closed[PATCH] date_core: RB_GC_GUARD temporary strings
Description
ext/date/date_core.c (d_lite_inspect): RB_GC_GUARD temporary strings
test/date/test_date.rb: add test case with GC.stress=true
RSTRING_PTR() should not be used directly on function calls:
- it may drop the VALUE reference from the stack/register set
and and allow GC to collect it - macros can evaluate the function call multiple times
If DNDEBUG is not defined, Date#inspect_raw also has the same issue.
However, I think removing the Date#inspect_raw code entirely is better.
If you prefer to use "git pull":
git pull git://bogomips.org/ruby date_core-gc-guard
Files
Actions
Like0
Like0Like0