Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MemoryUtil: add comment for Valgrind #1820

Merged
merged 2 commits into from Jan 12, 2015
Merged

Conversation

Tilka
Copy link
Member

@Tilka Tilka commented Jan 3, 2015

Valgrind doesn't support the mmap() flag MAP_32BIT (see this bug).

Alternatives that I decided not to use:

  • Adding a simple CMake option would force a full recompile for something that is only used for debugging.
  • Including valgrind.h if available and using the RUNNING_ON_VALGRIND macro to decide at runtime could cause heisenbugs.

@waddlesplash
Copy link
Contributor

LGTM

@degasus
Copy link
Member

degasus commented Jan 6, 2015

Could we also add such a warning if mmap fails? Else nobody will find this comment.

Valgrind doesn't support the mmap() flag MAP_32BIT. Adding a simple
CMake option would force a recompile, so just add this comment.
Sonicadvance1 added a commit that referenced this pull request Jan 12, 2015
MemoryUtil: add comment for Valgrind
@Sonicadvance1 Sonicadvance1 merged commit 11a36ca into dolphin-emu:master Jan 12, 2015
@Tilka Tilka deleted the valgrind branch January 12, 2015 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants