Skip to content

Replace deprecated LibXML.xmlGcMemSetup with .xmlMemSetup#15626

Merged
straight-shoota merged 1 commit intocrystal-lang:masterfrom
straight-shoota:refactor/libxml2-xmlmemsetup
Apr 18, 2025
Merged

Replace deprecated LibXML.xmlGcMemSetup with .xmlMemSetup#15626
straight-shoota merged 1 commit intocrystal-lang:masterfrom
straight-shoota:refactor/libxml2-xmlmemsetup

Conversation

@straight-shoota
Copy link
Member

@straight-shoota straight-shoota commented Apr 2, 2025

xmlGcMemSetup has been deprecated in libxml2 2.14 and should be replaced by xmlMemSetup (available since 2.0.0)

https://gitlab.gnome.org/GNOME/libxml2/-/commit/5d36664fc91d44f1fc8426a7db6ec2400280d54c

This removes support for atomic memory allocation in libxml2, which might potentially affect GC performance.

@ysbaddaden
Copy link
Collaborator

This upgrades the minimum libxml version, right?

@straight-shoota
Copy link
Member Author

straight-shoota commented Apr 3, 2025

This upgrades the minimum libxml version, right?

No. xmlMemSetup has been available since version 2.0.0.

@ysbaddaden ysbaddaden added this to the 1.17.0 milestone Apr 15, 2025
@straight-shoota straight-shoota merged commit abf20a0 into crystal-lang:master Apr 18, 2025
35 of 36 checks passed
@straight-shoota straight-shoota deleted the refactor/libxml2-xmlmemsetup branch April 18, 2025 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants