Changeset 19666 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- May 13, 2009 3:31:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/MMAllHyper.cpp
r19663 r19666 158 158 * @param pVM The VM handle. 159 159 */ 160 VMMDECL(int) MMHyperLock(PVM pVM)160 static int mmHyperLock(PVM pVM) 161 161 { 162 162 PMMHYPERHEAP pHeap = pVM->mm.s.CTX_SUFF(pHyperHeap); … … 189 189 * @param pVM The VM handle. 190 190 */ 191 VMMDECL(void) MMHyperUnlock(PVM pVM)191 static void mmHyperUnlock(PVM pVM) 192 192 { 193 193 PMMHYPERHEAP pHeap = pVM->mm.s.CTX_SUFF(pHyperHeap); … … 336 336 int rc; 337 337 338 rc = MMHyperLock(pVM);338 rc = mmHyperLock(pVM); 339 339 AssertRCReturn(rc, rc); 340 340 341 341 rc = mmHyperAllocInternal(pVM, cb, uAlignment, enmTag, ppv); 342 342 343 MMHyperUnlock(pVM);343 mmHyperUnlock(pVM); 344 344 return rc; 345 345 } … … 916 916 int rc; 917 917 918 rc = MMHyperLock(pVM);918 rc = mmHyperLock(pVM); 919 919 AssertRCReturn(rc, rc); 920 920 921 921 rc = mmHyperFreeInternal(pVM, pv); 922 922 923 MMHyperUnlock(pVM);923 mmHyperUnlock(pVM); 924 924 return rc; 925 925 } … … 1195 1195 { 1196 1196 #ifdef MMHYPER_HEAP_STRICT 1197 int rc; 1198 1199 rc = mmHyperLock(pVM); 1200 AssertRC(rc); 1197 1201 mmHyperHeapCheck(pVM->mm.s.CTX_SUFF(pHyperHeap)); 1202 mmHyperUnlock(pVM); 1198 1203 #endif 1199 1204 }
Note:
See TracChangeset
for help on using the changeset viewer.