VirtualBox

Changeset 46729 in vbox for trunk


Ignore:
Timestamp:
Jun 21, 2013 4:58:49 PM (12 years ago)
Author:
vboxsync
Message:

RTMEMALLOCEX_FLAGS_32BIT_REACH for linux r3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/allocex-r3-posix.cpp

    r46577 r46729  
    9696    else
    9797    {
     98#if ARCH_BITS == 32
     99        pv = mmap(NULL, cbAlloc, fProt, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
     100
     101#elif defined(RT_OS_LINUX)
     102# ifdef MAP_32BIT
     103        pv = mmap(NULL, cbAlloc, fProt, MAP_PRIVATE | MAP_ANONYMOUS | MAP_32BIT, -1, 0);
     104        if (pv)
     105            return pv;
     106# endif
     107
    98108        /** @todo On linux, we need an accurate hint. Since I don't need this branch of
    99109         *        the code right now, I won't bother starting to parse
    100110         *        /proc/curproc/mmap right now... */
    101111        pv = NULL;
     112#else
     113        pv = NULL;
     114#endif
    102115    }
    103116    return pv;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette