summaryrefslogtreecommitdiff
path: root/Source/Core/Common/MemoryUtil.cpp
AgeCommit message (Collapse)Author
2017-08-18CommonFuncs: LastStrerrorString addedSepalani
2017-06-08remove MemUsage, and therefor psapi dependencyShawn Hoffman
2017-05-20MemoryUtil: 0 -> nullptrJosJuice
2017-05-20Remove code for only allocating low memoryJosJuice
This is unnecessary when we have position-independent code.
2017-03-27Initial support for Haiku.Augustin Cavalier
2017-01-23Add includes for building on Windows without PCHMichael Maltese
2016-10-23Fix unused function warningsLéo Lam
2016-09-24MemoryUtil: Fix formattingLéo Lam
clang-format really *wants* the two empty lines to be removed; otherwise, it will always flag MemoryUtil as needing formatting changes which is an annoyance when it is used as a git filter driver.
2016-08-07Common: namespace MemoryUtilLioncash
2016-07-17OpenBSD has a custom sysctl for physical memory.Anthony J. Bentley
2016-06-26Get rid of #define PAGE_MASK and round_page, which conflict with OS X headerscomex
2016-06-24Reformat all the things. Have fun with merge conflicts.Pierre Bourdon
2016-01-21Common: asterisks go against the type namemathieui
not the variable name
2015-09-11Partially revert "General: Toss out PRI macro usage"Lioncash
2015-06-13Fix FreeBSD buildJeffrey Pfau
2015-06-14Revert "x64: build a Position-Independent Executable (PIE)"Matthew Parlane
2015-06-03MemoryUtil: get executable pages near static dataTillmann Karras
and clean up a bit.
2015-05-26Merge pull request #2162 from degasus/prefetch_texMarkus Wick
CustomTexture: prefetch all available textures
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-05-16VideoCommon: Abort texture prefetching on low RAMdegasus
There is no nice way to correctly "detect" the "used" memory, so we just say we're fine to use 50% of the physical memory for custom textures. This will fix out-of-memory crashes, but we still might run into swapping issues.
2015-04-07Common: Remove TLS usage in GetLastErrorMsgdegasus
Just return std::string as this code isn't performance critical.
2015-02-25Formatting/Whitespace CleanupStevoisiak
Various fixes to formatting and whitespace
2015-01-18[Android] Remove posix_memalign workaround.Ryan Houdek
Google fixed the issue of posix_memalign not being available. It now works fine in r10d of the NDK.
2015-01-12MemoryUtil: mention Valgrind in mmap error messageTillmann Karras
2015-01-12MemoryUtil: add comment for ValgrindTillmann Karras
Valgrind doesn't support the mmap() flag MAP_32BIT. Adding a simple CMake option would force a recompile, so just add this comment.
2014-09-19Fix build failing when disabling precompiled headers.Rohit Nirmal
2014-09-17Be pedantic about stack overflow on Linux and OS X.comex
Add some magic to the fault handler to handle stack overflow due to BLR optimization, and disable the optimization if fastmem is not enabled.
2014-09-08Include CommonTypes.h instead of Common.h.Rohit Nirmal
2014-08-10Core: Actually show MemoryUtil.cpp allocation error messages on LinuxLioncash
2014-08-10Core: Fix case where a panic alert wouldn't be shown in MemoryUtil.cppLioncash
2014-07-31Fixes a check for what mmap returns.Ryan Houdek
On error mmap returns MAP_FAILED(-1) not null. FreeBSD was checking the return correctly, Linux was not. This was noticed by triad attempting to run Dolphin under valgrind and not getting a memory space under the 2GB limit(Because -1 wraps around on unsigned obviously)
2014-07-11mark all local functions as staticdegasus
2014-06-01Make MemoryUtil.cpp use the correct x86_64 define.Ryan Houdek
MemoryUtil.cpp was incorrectly using the old __x86_64__ define when it should be using _M_X86_64. It was also using _ARCH_64 when it shouldn't have which was causing an errant PanicAlert to come up in my development.
2014-03-29Remove all trailing whitespaces from our codebase.Pierre Bourdon
2014-03-09clang-modernize -use-nullptrTillmann Karras
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
2014-03-04Make our architecture defines less stupid.Ryan Houdek
Our defines were never clear between what meant 64bit or x86_64 This makes a clear cut between bitness and architecture. This commit also has the side effect of bringing up aarch64 compiling support.
2014-02-28Various changes suggested by cppcheckTillmann Karras
- remove unused variables - reduce the scope where it makes sense - correct limits (did you know that strcat()'s last parameter does not include the \0 that is always added?) - set some free()'d pointers to NULL
2014-02-28Convert MemoryUtil.cpp to Unix-style line endingsTillmann Karras
2014-02-22Make Common/ mostly IWYU clean (and fix errors in rest of the project ↵Pierre Bourdon
detected by this change).
2014-02-18Convert all includes to relative paths.Lioncash
2014-02-17Second and final pass of clearing out tabs.Lioncash
2013-12-31Remove unnecessary Src/ foldersJasper St. Pierre