From: Jan N. <jan...@gm...> - 2025-05-01 12:30:20
|
Op do 1 mei 2025 om 13:12 schreef Kevin Walzer: > I’m not clear on why this simply isn’t a bug fix for Tcl_CreateHashEntry > that allow more graceful failure in memory-intensive situations? > The reason for this is that are many calls to Tcl_CreateHashEntry in the Tcl code which don't check for NULL values. In stead of panicing, those will crash without any clue what happened. Actually, I thought about this, and - at the same time - do the same for Tcl_Malloc and friends as well: <https://core.tcl-lang.org/tips/doc/trunk/tip/668.md> but I don't think this will get sufficient support. Better first improve the error-handling in the core. Hope this helps, Jan Nijtmans |