Skip to content
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

H5I assert and seg fault bug fixes #30

Closed

Conversation

KLofthus
Copy link
Collaborator

Changed the H5I id and type free lists from using the length of the free list to determine number of reallocable entries to using serial numbers entries get upon entry to the free list. A maximum allocable serial number in the global struct H5I_mt_g is used as the barrier to prevent entry serial numbers above that maximum to not be re-allocatable.

Stats variables in H5Ipkg.h that used the number reallocable were removed and serial number tracking stats were added.

In mt_id_test.c asserts that checked number reallocable adjustments were removed and asserts that checked serial number adjustments were added.

src/H5Ipkg.h Show resolved Hide resolved
src/H5Ipkg.h Show resolved Hide resolved
src/H5Ipkg.h Show resolved Hide resolved
src/H5Iint.c Show resolved Hide resolved
src/H5Iint.c Show resolved Hide resolved
src/H5Iint.c Show resolved Hide resolved
src/H5Iint.c Show resolved Hide resolved
src/H5Iint.c Show resolved Hide resolved
src/H5Iint.c Show resolved Hide resolved
src/H5Iint.c Show resolved Hide resolved
src/H5Iint.c Show resolved Hide resolved
src/H5Iint.c Show resolved Hide resolved
src/H5Iint.c Show resolved Hide resolved
src/H5Iint.c Show resolved Hide resolved
src/H5Iint.c Show resolved Hide resolved
src/H5Iint.c Show resolved Hide resolved
@mattjala
Copy link
Collaborator

mattjala commented Jan 2, 2025

The H5P changes seem unrelated to the H5I fix. Could they be moved into a different PR/branch so that the H5I fix can go in separately?

@KLofthus KLofthus closed this Jan 2, 2025
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.

3 participants