asynts
71fd54f76b
MemoryManager: Off-by-one error when collecting memory pages.
...
Notice that we ensured that the size is a multiple of the page size and
that there is at least one page there, otherwise, this change would be
invalid.
We create an empty region and then expand it:
// First iteration.
m_user_physical_regions.append(PhysicalRegion::create(addr, addr));
// Following iterations.
region->expand(region->lower(), addr);
So if the memory region only has one page, we would end up with an empty
region. Thus we need to do one more iteration.
2020-10-12 19:39:00 +02:00
..
2020-09-25 21:18:17 +02:00
2020-10-03 12:36:49 +02:00
2020-10-08 10:00:39 +02:00
2020-10-03 12:36:49 +02:00
2020-10-07 13:42:17 +02:00
2020-09-25 21:18:17 +02:00
2020-09-25 21:18:17 +02:00
2020-08-12 20:40:59 +02:00
2020-10-08 10:01:10 +02:00
2020-09-25 21:18:17 +02:00
2020-10-03 12:36:49 +02:00
2020-09-27 19:46:04 +02:00
2020-10-03 12:36:49 +02:00
2020-10-03 12:36:49 +02:00
2020-10-12 19:39:00 +02:00
2020-07-01 12:07:01 +02:00
2020-09-27 21:15:25 +02:00
2020-05-16 12:00:04 +02:00
2020-09-25 21:18:17 +02:00
2020-08-25 09:48:48 +02:00
2020-09-25 21:18:17 +02:00
2020-09-13 21:19:15 +02:00
2020-09-13 21:19:15 +02:00
2020-09-13 21:19:15 +02:00
2020-09-13 21:19:15 +02:00
2020-09-27 19:46:04 +02:00
2020-05-16 12:00:04 +02:00
2020-08-11 20:29:14 +02:00
2020-08-16 16:33:28 +02:00
2020-10-08 09:59:55 +02:00
2020-08-22 20:55:10 +02:00
2020-09-25 21:18:17 +02:00
2020-08-22 20:55:10 +02:00
2020-09-13 21:19:15 +02:00
2020-08-10 20:05:18 +02:00
2020-09-25 21:18:17 +02:00
2020-04-30 11:43:25 +02:00
2020-05-14 20:15:18 +02:00
2020-08-17 09:57:18 +02:00
2020-08-10 11:51:45 +02:00
2020-09-25 21:18:17 +02:00
2020-10-10 23:47:53 +02:00
2020-09-27 19:46:04 +02:00
2020-08-19 21:21:34 +02:00
2020-08-19 21:21:34 +02:00
2020-08-16 16:33:28 +02:00
2020-08-10 11:51:45 +02:00
2020-09-13 21:19:15 +02:00
2020-09-25 21:18:17 +02:00
2020-08-25 09:48:48 +02:00
2020-08-25 09:48:48 +02:00
2020-08-26 08:52:07 +02:00
2020-10-03 12:36:49 +02:00
2020-09-27 19:46:04 +02:00
2020-08-30 09:43:49 +02:00
2020-08-10 11:51:45 +02:00
2020-08-19 11:10:53 +02:00
2020-09-13 21:19:15 +02:00
2020-10-02 15:38:07 +02:00
2020-09-25 21:18:17 +02:00
2020-10-03 12:36:49 +02:00
2020-09-27 19:46:04 +02:00
2020-08-10 11:51:45 +02:00
2020-08-10 11:51:45 +02:00
2020-08-25 09:48:48 +02:00
2020-08-25 09:48:48 +02:00
2020-09-27 01:02:11 +02:00
2020-09-22 15:06:40 +02:00
2020-09-15 20:36:45 +02:00
2020-09-25 21:18:17 +02:00
2020-09-25 21:18:17 +02:00
2020-10-08 09:54:41 +02:00