VirtualBox

Ignore:
Timestamp:
Dec 15, 2008 3:05:16 PM (16 years ago)
Author:
vboxsync
Message:

#3349: Changed a few MMHyperAlloc calls to MMR3HyperAllocOnceNoRel to save heap space.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r15252 r15508  
    201201    /** Pointer to the I/O buffer. */
    202202    RCPTRTYPE(uint8_t *) pbIOBufferRC;
    203    
     203
    204204    RTRCPTR Aligmnent1; /**< Align the statistics at an 8-byte boundrary. */
    205205
     
    55885588            pIf->cbIOBuffer = ATA_MAX_MULT_SECTORS * 512;
    55895589        Assert(!pIf->pbIOBufferR3);
    5590         rc = MMHyperAlloc(pVM, pIf->cbIOBuffer, 1, MM_TAG_PDM_DEVICE_USER, (void **)&pIf->pbIOBufferR3); /** @todo rainy day: change to MMR3HyperAllocOnceNoRel */
     5590        rc = MMR3HyperAllocOnceNoRel(pVM, pIf->cbIOBuffer, 0, MM_TAG_PDM_DEVICE_USER, (void **)&pIf->pbIOBufferR3);
    55915591        if (RT_FAILURE(rc))
    55925592            return VERR_NO_MEMORY;
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