Skip to content

Remove ENTER and GUARD_OBJ macro#391

Merged
tompng merged 1 commit intoruby:masterfrom
tompng:remove_guard_obj
Jul 29, 2025
Merged

Remove ENTER and GUARD_OBJ macro#391
tompng merged 1 commit intoruby:masterfrom
tompng:remove_guard_obj

Conversation

@tompng
Copy link
Member

@tompng tompng commented Jul 28, 2025

Remove remaining ENTER/GUARD_OBJ macro in BigDecimal_DoDivmod and BigDecimal_div2
Replace it to standard RB_GC_GUARD

BigDecimal was using ENTER(n) and GUARD_OBJ(lhs, rhs) because of BigDecimal's data structure. The structure turned out to be GC compaction unsafe. (structure changed in #344)

Replace remaining ENTER/GUARD_OBJ in BigDecimal_DoDivmod and BigDecimal_div2 to standard RB_GC_GUARD
@tompng tompng merged commit e7e36b5 into ruby:master Jul 29, 2025
79 checks passed
@tompng tompng deleted the remove_guard_obj branch July 29, 2025 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant