FRIDAY, APRIL 17, 2026
c++ — Impact 6 / 10
C++: Improve constexpr call hashing and garbage collection.
Optimizes constexpr call hashing and garbage collection to prevent use-after-free issues in recursive lambda evaluations.
This commit addresses a use-after-free issue that could occur during the evaluation of recursive constexpr lambdas, particularly when the -Wtautological-compare flag is enabled. The fix involves unsharing bindings earlier in the cxx_eval_call_expression function, specifically when creating the entry in the constexpr_call_table. This ensures that the entry refers to valid memory, even after garbage collection.