Skip to content

Add explicitly owned native byte buffers - #1580

Merged
sbillig merged 2 commits into
masterfrom
fevm-pr-native-owned-bytes
Sep 25, 2026
Merged

sbillig merged 2 commits into
masterfrom
fevm-pr-native-owned-bytes

Conversation

@sbillig

@sbillig sbillig commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

Native programs need reusable heap storage whose growth can fail without losing existing data. Add std::native::ByteBuffer, an explicit, non-Copy allocation owner with fallible geometric growth, zero initialization, overlap-safe copying, capacity reuse, and consuming release.

The buffer keeps its allocation private. Its allocator declarations have compiler-owned memory contracts, and native host calls pass raw addresses using the platform pointer ABI. User-defined allocator declarations remain subject to opaque-call checks.

This follows #1579 and pins the Sonatina enum-layout fix from fe-lang/sonatina#328 on the existing aggregate-construction integration. Buffer data is reclaimed explicitly; automatic destruction and compiler-generated reference-descriptor reclamation remain separate work.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-25T01:17:07.516201Z b8f0316 New commits
🔒 Security Review ✅ Completed 2026-09-25T01:16:54.218382Z b8f0316 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sbillig
sbillig added this pull request to stack #1578 September 22, 2026 23:57
@sbillig
sbillig removed this pull request from stack #1578 September 23, 2026 04:48
@sbillig
sbillig added this pull request to stack #1583 September 23, 2026 04:49
@sbillig
sbillig removed this pull request from stack #1583 September 23, 2026 04:53
@sbillig
sbillig added this pull request to stack #1584 September 23, 2026 04:54
@sbillig
sbillig removed this pull request from stack #1584 September 23, 2026 06:26
@sbillig
sbillig force-pushed the fevm-pr-native-owned-bytes branch from 816e91b to 7337f5c Compare September 23, 2026 06:27
@sbillig
sbillig added this pull request to stack #1588 September 23, 2026 06:28
@sbillig
sbillig force-pushed the fevm-pr-native-owned-bytes branch from 7337f5c to 56f075c Compare September 24, 2026 04:32
@sbillig
sbillig force-pushed the fevm-pr-native-owned-bytes branch from 56f075c to 96cc320 Compare September 25, 2026 00:12
Base automatically changed from fevm-pr-native-memory-copy to master September 25, 2026 01:13
@sbillig
sbillig force-pushed the fevm-pr-native-owned-bytes branch from 96cc320 to b8f0316 Compare September 25, 2026 01:13
@sbillig
sbillig merged commit 7d976c7 into master Sep 25, 2026
9 checks passed
@sbillig
sbillig deleted the fevm-pr-native-owned-bytes branch September 25, 2026 02:09
cburgdorf added a commit that referenced this pull request Sep 30, 2026
Several user-facing changes merged after 26.3 were missing release notes
entries:

- Bugfixes: event ABI `anonymous` flag (#1562), string literal escapes
  (#1563), effect provider identity (#1564), shared calls on non-Copy
  fields (#1581), recursive raw pointer types (#1609).
- Performance: `DynArray::get` for static elements (#1559), constant
  string ABI encoding (#1560), compile-time caching (#1617, #1619, #1621).
- Native backend features: workspaces, native tests and `std::io`
  (#1565), process arguments and CPU timing (#1566), `ByteBuffer`
  (#1580).
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