VirtualBox

Changeset 55253 in vbox


Ignore:
Timestamp:
Apr 14, 2015 2:56:38 PM (10 years ago)
Author:
vboxsync
Message:

memcache.cpp: Enabled the free list (unused).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/alloc/memcache.cpp

    r55252 r55253  
    226226    pThis->pFreeTop         = NULL;
    227227
    228 #if 1 /* should be fixed now, enable shortly... */
    229     /** @todo
    230      * Here is a puzzler (or maybe I'm just blind), the free list code breaks
    231      * badly on my macbook pro (i7) (32-bit).
    232      *
    233      * I tried changing the reads from unordered to ordered to no avail.  Then I
    234      * tried optimizing the code with the ASMAtomicCmpXchgExPtr function to
    235      * avoid some reads - no change. Inserting pause instructions did nothing
    236      * (as expected).  The only thing which seems to make a difference is
    237      * reading the pFreeTop pointer twice in the free code... This is weird or I'm
    238      * overlooking something..
    239      *
    240      * No time to figure it out, so I'm disabling the broken code paths for
    241      * now. */
    242     pThis->fUseFreeList = false;
    243 #endif
    244 
    245228    *phMemCache = pThis;
    246229    return VINF_SUCCESS;
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