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

jit: fix pcre2_jit_free_unused_memory() if sljit not using allocator #165

Merged
merged 1 commit into from
Dec 1, 2022

Conversation

carenas
Copy link
Contributor

@carenas carenas commented Dec 1, 2022

sljit allows building without an internal allocator, but instead using an external one.

make sure to only invoke the corresponding sljit call if an internal allocator is in use (the default and as coded in pcre integration) to avoid problems if the code is changed to use an external allocator instead.

@carenas
Copy link
Contributor Author

carenas commented Dec 1, 2022

FWIW the 32bit Windows failure is unrelated and independently fixed by #166

Copy link
Collaborator

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

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

LGTM

sljit allows building without an internal allocator, but instead using
an external one.

make sure to only invoke the corresponding sljit call if an internal
allocator is in use (the default and as coded in pcre integration) to
avoid problems if the code is changed to use an external allocator
instead.
Copy link
Collaborator

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants