diff options
Diffstat (limited to 'src/common/host_memory.cpp')
| -rw-r--r-- | src/common/host_memory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp index 611c7d1a3..8e4f1f97a 100644 --- a/src/common/host_memory.cpp +++ b/src/common/host_memory.cpp | |||
| @@ -322,7 +322,7 @@ private: | |||
| 322 | } | 322 | } |
| 323 | 323 | ||
| 324 | /// Return true when a given memory region is a "nieche" and the placeholders don't have to be | 324 | /// Return true when a given memory region is a "nieche" and the placeholders don't have to be |
| 325 | /// splitted. | 325 | /// split. |
| 326 | bool IsNiechePlaceholder(size_t virtual_offset, size_t length) const { | 326 | bool IsNiechePlaceholder(size_t virtual_offset, size_t length) const { |
| 327 | const auto it = placeholders.upper_bound({virtual_offset, virtual_offset + length}); | 327 | const auto it = placeholders.upper_bound({virtual_offset, virtual_offset + length}); |
| 328 | if (it != placeholders.end() && it->lower() == virtual_offset + length) { | 328 | if (it != placeholders.end() && it->lower() == virtual_offset + length) { |
| @@ -484,7 +484,7 @@ class HostMemory::Impl { | |||
| 484 | public: | 484 | public: |
| 485 | explicit Impl(size_t /*backing_size */, size_t /* virtual_size */) { | 485 | explicit Impl(size_t /*backing_size */, size_t /* virtual_size */) { |
| 486 | // This is just a place holder. | 486 | // This is just a place holder. |
| 487 | // Please implement fastmem in a propper way on your platform. | 487 | // Please implement fastmem in a proper way on your platform. |
| 488 | throw std::bad_alloc{}; | 488 | throw std::bad_alloc{}; |
| 489 | } | 489 | } |
| 490 | 490 | ||