VirtualBox

Changeset 82660 in vbox


Ignore:
Timestamp:
Jan 7, 2020 12:33:03 PM (5 years ago)
Author:
vboxsync
Message:

IPRT/mem: Avoid calling assert(3C) on Solaris when mlock(3C) fails due to its requirement of the non-default proc_lock_memory privilege.

Location:
trunk/src/VBox/Runtime/r3/posix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/rtmempage-exec-mmap-heap-posix.cpp

    r78348 r82660  
    246246    {
    247247        int rc = mlock(pv, cb);
     248# ifndef RT_OS_SOLARIS /* mlock(3C) on Solaris requires the priv_lock_memory privilege */
    248249        AssertMsg(rc == 0, ("mlock %p LB %#zx -> %d errno=%d\n", pv, cb, rc, errno));
     250# endif
    249251        NOREF(rc);
    250252    }
  • trunk/src/VBox/Runtime/r3/posix/rtmempage-exec-mmap-posix.cpp

    r78345 r82660  
    5959    {
    6060        int rc = mlock(pv, cb);
     61# ifndef RT_OS_SOLARIS /* mlock(3C) on Solaris requires the priv_lock_memory privilege */
    6162        AssertMsg(rc == 0, ("mlock %p LB %#zx -> %d errno=%d\n", pv, cb, rc, errno));
     63# endif
    6264        NOREF(rc);
    6365    }
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