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

Fix unaligned matching of strings for code compiled with OTP < 26 #1492

Merged

Conversation

pguyot
Copy link
Collaborator

@pguyot pguyot commented Jan 25, 2025

OTP 25 compiler generates bs_match_string, and AtomVM wouldn't support some unaligned matching that worked when compiled by OTP 26+.

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

@pguyot pguyot force-pushed the w04/add-support-for-bs_match_string-unaligned branch 3 times, most recently from 98cb365 to 69a0136 Compare January 25, 2025 18:06
@pguyot pguyot changed the base branch from release-0.6 to main January 25, 2025 18:07
OTP 25 compiler generates bs_match_string, and AtomVM wouldn't support
some unaligned matching that worked when compiled by OTP 26+.

Also bump s390x CI to use bookworm as cc from bullseye crashes on our code.

Signed-off-by: Paul Guyot <[email protected]>
@pguyot pguyot force-pushed the w04/add-support-for-bs_match_string-unaligned branch from 69a0136 to dffbd53 Compare January 25, 2025 20:05
@bettio bettio merged commit 087d892 into atomvm:main Jan 25, 2025
108 checks passed
@pguyot pguyot deleted the w04/add-support-for-bs_match_string-unaligned branch January 25, 2025 21:31
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