0
Fork 0
mirror of https://github.com/zeronsh/comet.git synced 2026-11-16 18:57:19 +00:00
comet/apps
Wing d0c77e9c14 macOS: the engine's heap no longer reads as GPU memory
mimalloc v2 maps its regions with the VM tag in its os_tag option,
100 by default (options.c:147, prim/unix/prim.c:307), and on macOS tag
100 is VM_MEMORY_IOACCELERATOR. footprint, vmmap and Activity Monitor
showed the whole Rust heap of the app and the background engine as
GPU memory: a live engine read "819 MB IOAccelerator" for what was its
own heap, and its purged pages as 4.5 GB of reclaimable GPU memory.
An A/B on an isolated engine with a known 256 MiB allocation moved all
of it from tag 100 to tag 254 with the same footprint.

The global allocator now sets os_tag to 254 (Apple's application range,
mimalloc's own fallback) before its first allocation, so the heap reads
as "Memory Tag 254". Accounting only: no allocation changes. A test
reads the region tag of a small and a large allocation back through
mach_vm_region (100 without the fix, 254 with it).

Refs #1369

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
History 2026-11-12 02:09:11 -07:00
..
android Merge relay-mobile-ios into zeron/relay-mobile-android 2026-11-08 15:01:35 -07:00
card-web Cards: Maintainer first, as a dark pill (#1193) 2026-11-03 16:27:35 -07:00
ios Merge zeron/cloud-fast-wake 2026-11-08 16:40:34 -07:00
landing Add iOS App Store link to landing page 2026-11-06 21:14:12 -07:00
www-redirect www-redirect: 301 www.zeron.sh to apex via worker route 2026-08-15 10:22:14 +00:00
zeron macOS: the engine's heap no longer reads as GPU memory 2026-11-12 02:09:11 -07:00
zgx zgx: the active tab always stands on its wash 2026-11-12 00:44:10 -07:00