Skip to content

Consider dropping GSlice allocator #430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bgilbert opened this issue Mar 15, 2023 · 0 comments · Fixed by #435
Closed

Consider dropping GSlice allocator #430

bgilbert opened this issue Mar 15, 2023 · 0 comments · Fixed by #435

Comments

@bgilbert
Copy link
Member

Slide format

All

Issue details

glib 2.76 converts the slice allocator implementation to a g_malloc wrapper, which has been under discussion since 2015. Consider switching to g_malloc everywhere to simplify our internals, e.g. eliminating _openslide_slice.

g_malloc is also a malloc wrapper since glib 2.46, but it provides some useful API affordances (e.g. automatic abort on allocation failure) so I'd be inclined to keep using it.

bgilbert added a commit to bgilbert/openslide that referenced this issue Apr 19, 2023
glib deprecated it.

Fixes openslide#430.

Signed-off-by: Benjamin Gilbert <bgilbert@cs.cmu.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant