-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Do not shadow variable, use deprecated MAP_ANON if MAP_ANONYMOUS is not defined #9063
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
Conversation
@@ -224,6 +224,13 @@ PosixLockedPageAllocator::PosixLockedPageAllocator() | |||
page_size = sysconf(_SC_PAGESIZE); | |||
#endif | |||
} | |||
|
|||
// Some systems (at least OS X) do not define MAP_ANONYMOUS yet and define | |||
// MAP_ANON which is deprecated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If MAP_ANON is deprecated, what is the new name?
Also: this passed Travis, how is that possible if it didn't exist on MacOSX?
utACK FreeBSD manpage
Linux manpage
OSX 10.11 manpage
|
So apparently all three OSes support MAP_ANONYMOUS? What am I missing? |
My build machine is 10.10. |
@paveljanik what does you 10.10s |
@jonasschnelli Nothing...
|
That's really strange. I really don't understand MacOSX' deprecation policy, from release to release it seems to oscillate wildly. In any case utACK. |
Interesting:
but
|
We are not alone: https://gmtk-trac.bitnamiapp.com/trac/gmtk/ticket/371 and others... |
…NONYMOUS is not defined 4a9f3c5 Do not shadow variable, use deprecated MAP_ANON if MAP_ANONYMOUS is not defined. (Pavel Janík)
…f MAP_ANONYMOUS is not defined 4a9f3c5 Do not shadow variable, use deprecated MAP_ANON if MAP_ANONYMOUS is not defined. (Pavel Janík)
…f MAP_ANONYMOUS is not defined 4a9f3c5 Do not shadow variable, use deprecated MAP_ANON if MAP_ANONYMOUS is not defined. (Pavel Janík)
…f MAP_ANONYMOUS is not defined 4a9f3c5 Do not shadow variable, use deprecated MAP_ANON if MAP_ANONYMOUS is not defined. (Pavel Janík)
Locked memory manager Add a pool for locked memory chunks, replacing `LockedPageManager`. Cherry-picked from the following upstream PRs: - bitcoin/bitcoin#8321 - bitcoin/bitcoin#8753 - bitcoin/bitcoin#9063 - bitcoin/bitcoin#9070 - bitcoin/bitcoin#11385 - bitcoin/bitcoin#12048 - Excludes change to benchmark. - bitcoin/bitcoin#15117 - bitcoin/bitcoin#16161 - Excludes Travis CI changes. - Includes change from bitcoin/bitcoin#13163 - bitcoin/bitcoin#15600 - bitcoin/bitcoin#18443 - Assorted small changes from: - bitcoin/bitcoin#9233 - bitcoin/bitcoin#10483 - bitcoin/bitcoin#10645 - bitcoin/bitcoin#10969 - bitcoin/bitcoin#11351 - bitcoin/bitcoin#19111 - Excludes change to `src/rpc/server.cpp` - bitcoin/bitcoin#9804 - Only the commit for `src/key.cpp` - bitcoin/bitcoin#9598
Two minor fixes after merging #8753.