VirtualBox

Changeset 29640 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 18, 2010 2:30:50 PM (15 years ago)
Author:
vboxsync
Message:

Use ASMProbeReadByte instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServicePageSharing.cpp

    r29608 r29640  
    2222#include <iprt/assert.h>
    2323#include <iprt/avl.h>
     24#include <iprt/asm.h>
    2425#include <iprt/mem.h>
    2526#include <iprt/stream.h>
     
    157158                    {
    158159                        /* Try to trick the optimizer to leave the page touching code in place. */
    159                         dummy += *(char *)pRegion;
     160                        ASMProbeReadByte(pRegion);
    160161                        pRegion += PAGE_SIZE;
    161162                    }
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