Skip to content

channel: Make some operations in tick lock-free if 128-bit atomics available#1222

Open
taiki-e wants to merge 1 commit intomasterfrom
taiki-e/tick-align
Open

channel: Make some operations in tick lock-free if 128-bit atomics available#1222
taiki-e wants to merge 1 commit intomasterfrom
taiki-e/tick-align

Conversation

@taiki-e
Copy link
Member

@taiki-e taiki-e commented Feb 16, 2026

Instant (struct { i64, u32 }) is 16-byte on 64-bit archtectures so we can make AtomicCell<Instant> lock-free on some platforms by ensure alignment.

(std 128-bit atomics is not stable yet, but atomic-maybe-uninit that used in AtomicCell supports it on stable.)

@taiki-e taiki-e force-pushed the taiki-e/tick-align branch 4 times, most recently from 6e63ff1 to 0da4f29 Compare February 16, 2026 18:05
@taiki-e taiki-e closed this Feb 17, 2026
@taiki-e taiki-e deleted the taiki-e/tick-align branch February 17, 2026 01:43
@taiki-e taiki-e restored the taiki-e/tick-align branch February 17, 2026 01:44
@taiki-e taiki-e reopened this Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant