summaryrefslogtreecommitdiffstats
path: root/src/common/mem_arena.cpp
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2015-02-19 07:18:47 +0100
committerarchshift <admin@archshift.com>2015-02-19 07:26:22 +0100
commit5efd149ad56efb2a00332af5a791b403e7f70273 (patch)
tree90492d27a1c67a480f8675c269a63932cee28432 /src/common/mem_arena.cpp
parentMerge pull request #580 from lioncash/emplace (diff)
downloadyuzu-5efd149ad56efb2a00332af5a791b403e7f70273.tar
yuzu-5efd149ad56efb2a00332af5a791b403e7f70273.tar.gz
yuzu-5efd149ad56efb2a00332af5a791b403e7f70273.tar.bz2
yuzu-5efd149ad56efb2a00332af5a791b403e7f70273.tar.lz
yuzu-5efd149ad56efb2a00332af5a791b403e7f70273.tar.xz
yuzu-5efd149ad56efb2a00332af5a791b403e7f70273.tar.zst
yuzu-5efd149ad56efb2a00332af5a791b403e7f70273.zip
Diffstat (limited to 'src/common/mem_arena.cpp')
-rw-r--r--src/common/mem_arena.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/common/mem_arena.cpp b/src/common/mem_arena.cpp
index a20361d6f..cc31a88cc 100644
--- a/src/common/mem_arena.cpp
+++ b/src/common/mem_arena.cpp
@@ -218,7 +218,7 @@ u8* MemArena::Find4GBBase()
void* base = mmap(0, 0x10000000, PROT_READ | PROT_WRITE,
MAP_ANON | MAP_SHARED, -1, 0);
if (base == MAP_FAILED) {
- PanicAlert("Failed to map 256 MB of memory space: %s", strerror(errno));
+ LOG_ERROR(Common_Memory, "Failed to map 256 MB of memory space: %s", strerror(errno));
return 0;
}
munmap(base, 0x10000000);
@@ -338,7 +338,7 @@ u8 *MemoryMap_Setup(const MemoryView *views, int num_views, u32 flags, MemArena
// address space.
if (!Memory_TryBase(base, views, num_views, flags, arena))
{
- PanicAlert("MemoryMap_Setup: Failed finding a memory base.");
+ LOG_ERROR(Common_Memory, "MemoryMap_Setup: Failed finding a memory base.");
return 0;
}
#elif defined(_WIN32)
@@ -363,12 +363,11 @@ u8 *MemoryMap_Setup(const MemoryView *views, int num_views, u32 flags, MemArena
if (!Memory_TryBase(base, views, num_views, flags, arena))
{
LOG_ERROR(Common_Memory, "MemoryMap_Setup: Failed finding a memory base.");
- PanicAlert("MemoryMap_Setup: Failed finding a memory base.");
return 0;
}
#endif
if (base_attempts)
- PanicAlert("No possible memory base pointer found!");
+ LOG_ERROR(Common_Memory, "No possible memory base pointer found!");
return base;
}