Skip to content

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

Open
pguyot wants to merge 1 commit into
atomvm:release-0.7from
pguyot:w29/fix-rp2-uart-driver
Open

Bound rp2 uart read_blocking and avoid re-interning parity atoms#2362
pguyot wants to merge 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>
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.

1 participant