VirtualBox

Ignore:
Timestamp:
Jul 30, 2008 10:48:35 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33900
Message:

iprt: Added a RT_NO_THROW macro for wrapping up the throw() stuff, applying it to mem.h and rand.h to try make RTMemAutoPtr work as efficiently as the pure C version of the stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/solaris/alloc-solaris.cpp

    r8245 r11020  
    5454 * @param   cb      Size in bytes of the memory block to allocate.
    5555 */
    56 RTDECL(void *) RTMemExecAlloc(size_t cb)
     56RTDECL(void *) RTMemExecAlloc(size_t cb) RT_NO_THROW
    5757{
    5858    /*
     
    9292 * @param   pv      Pointer to memory block.
    9393 */
    94 RTDECL(void)    RTMemExecFree(void *pv)
     94RTDECL(void)    RTMemExecFree(void *pv) RT_NO_THROW
    9595{
    9696    if (pv)
     
    106106 * @param   cb  Size of the memory block. Will be rounded up to page size.
    107107 */
    108 RTDECL(void *) RTMemPageAlloc(size_t cb)
     108RTDECL(void *) RTMemPageAlloc(size_t cb) RT_NO_THROW
    109109{
    110110    return valloc(RT_ALIGN_Z(cb, PAGE_SIZE));
     
    119119 * @param   cb  Size of the memory block. Will be rounded up to page size.
    120120 */
    121 RTDECL(void *) RTMemPageAllocZ(size_t cb)
     121RTDECL(void *) RTMemPageAllocZ(size_t cb) RT_NO_THROW
    122122{
    123123    cb = RT_ALIGN_Z(cb, PAGE_SIZE);
     
    135135 *                  NULL will be ignored.
    136136 */
    137 RTDECL(void) RTMemPageFree(void *pv)
     137RTDECL(void) RTMemPageFree(void *pv) RT_NO_THROW
    138138{
    139139    if (pv)
     
    150150 * @param   fProtect    The new protection, a combination of the RTMEM_PROT_* defines.
    151151 */
    152 RTDECL(int) RTMemProtect(void *pv, size_t cb, unsigned fProtect)
     152RTDECL(int) RTMemProtect(void *pv, size_t cb, unsigned fProtect) RT_NO_THROW
    153153{
    154154    /*
Note: See TracChangeset for help on using the changeset viewer.

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