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

IBM zSystems DFLTCC: Inline DLFTCC states into zlib states #1718

Merged
merged 1 commit into from May 15, 2024

Conversation

iii-i
Copy link
Member

@iii-i iii-i commented May 2, 2024

Currently DFLTCC states are allocated using hook macros, complicating memory management. Inline them into zlib states and remove the hooks.

deflate.h Outdated Show resolved Hide resolved
deflate.h Show resolved Hide resolved
inflate.h Outdated Show resolved Hide resolved
Currently DFLTCC states are allocated using hook macros, complicating
memory management. Inline them into zlib states and remove the hooks.
@iii-i
Copy link
Member Author

iii-i commented May 3, 2024

I didn't know about the empty struct restriction, thanks! I guess even if it were allowed, the compiler would still have to implicitly make it at least 1 byte in size in order to give it a distinct address. So I've added an #ifdef to omit the arch field.

Copy link
Member

@Dead2 Dead2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Dead2 Dead2 merged commit 05ef29e into zlib-ng:develop May 15, 2024
136 of 142 checks passed
@iii-i iii-i deleted the dfltcc-inline-states branch May 21, 2024 09:44
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.

None yet

3 participants