How can a moderately sized memory allocation fail in a 64 bit process on Mac OS X?

前端 未结 6 1779
眼角桃花
眼角桃花 2021-01-02 01:30

I\'m building a photo book layout application. The application frequently decompresses JPEG images into in-memory bitmap buffers. The size of the images is constrained to 10

6条回答
  •  孤独总比滥情好
    2021-01-02 02:05

    Even though a 64 bit computer can theoretically address 18 EB, current processors are limited to 256 TB. Of course, you aren't reaching this limit either. But the amount of memory your process can use at one time is limited to the amount of RAM available. The OS may also limit the amount of RAM you can use. According to the link you posted, "Even for computers that have 4 or more gigabytes of RAM available, the system rarely dedicates this much RAM to a single process."

提交回复
热议问题