Hacker News new | ask | show | jobs
by leni536 3691 days ago
"Discardable memory" doesn't seem to be implemented though, however there is an implementation for "discardable shared memory" [1] which seems to offer this volatile behavior. It uses ashmem_pin_region() and ashmem_unpin_region() for Android, which seems to be the equivalent for iOS's NSPurgeableData. I wonder if it does anything useful for any other OS.

[1] https://chromium.googlesource.com/chromium/src/base/+/master...