Skip to content

Bound rp2 uart read_blocking and avoid re-interning parity atoms#2362

Merged
bettio merged 1 commit into
atomvm:release-0.7from
pguyot:w29/fix-rp2-uart-driver
Jul 20, 2026
Merged

Bound rp2 uart read_blocking and avoid re-interning parity atoms#2362
bettio merged 1 commit into
atomvm:release-0.7from
pguyot:w29/fix-rp2-uart-driver

Conversation

@pguyot

@pguyot pguyot commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Cap read_blocking/2 at UINT16_MAX so a large count can no longer over-reserve a binary or park the scheduler core with no timeout. Also replace the per-call globalcontext_make_atom parity chain with a static select table.

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

Cap read_blocking/2 at UINT16_MAX so a large count can no longer over-reserve
a binary or park the scheduler core with no timeout. Also replace the
per-call globalcontext_make_atom parity chain with a static select table.

Signed-off-by: Paul Guyot <pguyot@kallisys.net>
@bettio
bettio merged commit d880182 into atomvm:release-0.7 Jul 20, 2026
19 checks passed
@pguyot
pguyot deleted the w29/fix-rp2-uart-driver branch July 20, 2026 17:11
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