[PR #7344] [MERGED] horizon-world: use AtomicU32 for temp-name counters #7510

Closed
opened 2026-11-03 06:40:17 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7344
Author: @socksprox
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: t3/atomic-u32-temp-counters


📝 Commits (1)

  • 4611b48 horizon-world: use AtomicU32 for temp-name counters

📊 Changes

3 files changed (+8 additions, -8 deletions)

View changed files

📝 crates/horizon-world/src/level/data/cache.rs (+4 -4)
📝 crates/horizon-world/src/region.rs (+2 -2)
📝 crates/horizon-world/tests/world_io.rs (+2 -2)

📄 Description

🤖 Opened by socksprox's AI agent (Devin, SWE-2 High), not by socksprox personally.

What and why

AtomicU64 does not compile on targets without 64-bit atomics (armv6k-nintendo-3ds, 32-bit ARMv6). Every use in horizon-world is a "next temp file name" counter where 32 bits is plenty, so each becomes AtomicU32. No behavior change.

Fixes #7340

  • crates/horizon-world/src/region.rs — NEXT_TEMP (region writer temp files)
  • crates/horizon-world/src/level/data/cache.rs — NEXT_TEMP (behaviour-cache snapshot temp files), test NEXT_FIXTURE
  • crates/horizon-world/tests/world_io.rs — NEXT (temp test dirs, same pattern)

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

none

Other projects' code

none

Self-check

pr_ready (tools/pr_ready.py --quick on MacBookPro, against origin/main at 865b05bd4, 3 min 53 s)

Check Result
Scope ✅ 3 files, +8 −8
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 612 passed (1 min 22 s)
rustfmt ✅ (9 s)
clippy ✅ (5 min 6 s)
tests: horizon-world ✅ 406 passed (6 s)
doc tests ✅ 0 passed (2 s)
content root tests ➖ content root untouched
mod API up to date ➖ native hooks untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses

🤖 Generated with Devin


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/7344 **Author:** [@socksprox](https://github.com/socksprox) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `t3/atomic-u32-temp-counters` --- ### 📝 Commits (1) - [`4611b48`](https://github.com/horizon-rust/horizon/commit/4611b48768d956a6f952ee1fa959c2b4e62c3e0f) horizon-world: use AtomicU32 for temp-name counters ### 📊 Changes **3 files changed** (+8 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-world/src/level/data/cache.rs` (+4 -4) 📝 `crates/horizon-world/src/region.rs` (+2 -2) 📝 `crates/horizon-world/tests/world_io.rs` (+2 -2) </details> ### 📄 Description > 🤖 Opened by socksprox's AI agent (Devin, SWE-2 High), not by socksprox personally. ## What and why `AtomicU64` does not compile on targets without 64-bit atomics (`armv6k-nintendo-3ds`, 32-bit ARMv6). Every use in `horizon-world` is a "next temp file name" counter where 32 bits is plenty, so each becomes `AtomicU32`. No behavior change. Fixes #7340 - `crates/horizon-world/src/region.rs` — `NEXT_TEMP` (region writer temp files) - `crates/horizon-world/src/level/data/cache.rs` — `NEXT_TEMP` (behaviour-cache snapshot temp files), test `NEXT_FIXTURE` - `crates/horizon-world/tests/world_io.rs` — `NEXT` (temp test dirs, same pattern) ## Kind - [ ] parity: Horizon now does what vanilla 26.3 does - [x] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference none ## Other projects' code none ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on MacBookPro, against origin/main at 865b05bd4, 3 min 53 s) | Check | Result | | --- | --- | | Scope | ✅ 3 files, +8 −8 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 612 passed (1 min 22 s) | | rustfmt | ✅ (9 s) | | clippy | ✅ (5 min 6 s) | | tests: horizon-world | ✅ 406 passed (6 s) | | doc tests | ✅ 0 passed (2 s) | | content root tests | ➖ content root untouched | | mod API up to date | ➖ native hooks untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | 🤖 Generated with [Devin](https://devin.ai) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:40:17 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#7510
No description provided.