VirtualBox

Changeset 14613 in vbox for trunk/src


Ignore:
Timestamp:
Nov 26, 2008 12:56:39 AM (16 years ago)
Author:
vboxsync
Message:

VBoxManage: the other problematic function is handleModifyVM, disabled global optimizations for it. Enabled the handleShowVMInfo optimization hack for x86 too, as it suffers (even if it's significantly less).

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r14555 r14613  
    3535
    3636#include <stdlib.h>
    37 #include <stdarg.h>
    3837
    3938#include <vector>
     
    4140#endif /* !VBOX_ONLY_DOCS */
    4241
    43 #include <iprt/runtime.h>
     42#include <iprt/initterm.h>
    4443#include <iprt/stream.h>
    4544#include <iprt/string.h>
     45#include <iprt/stdarg.h>
    4646#include <iprt/asm.h>
    4747#include <iprt/uuid.h>
     
    7474
    7575/** command handler type */
    76 typedef DECLCALLBACK(int) FNHANDLER(int argc, char *argv[], ComPtr<IVirtualBox> aVirtualBox, ComPtr<ISession> aSession);
    77 typedef FNHANDLER *PFNHANDLER;
     76typedef int (*PFNHANDLER)(int argc, char *argv[], ComPtr<IVirtualBox> aVirtualBox, ComPtr<ISession> aSession);
    7877
    7978#ifdef USE_XPCOM_QUEUE
     
    14461445}
    14471446
     1447/** @todo refine this after HDD changes; MSC 8.0/64 has trouble with handleModifyVM.  */
     1448#if defined(_MSC_VER)
     1449# pragma optimize("g", off)
     1450#endif
     1451
    14481452static int handleModifyVM(int argc, char *argv[],
    14491453                          ComPtr<IVirtualBox> virtualBox, ComPtr<ISession> session)
     
    32553259}
    32563260
     3261/** @todo refine this after HDD changes; MSC 8.0/64 has trouble with handleModifyVM.  */
     3262#if defined(_MSC_VER)
     3263# pragma optimize("", on)
     3264#endif
     3265
    32573266static int handleStartVM(int argc, char *argv[],
    32583267                         ComPtr<IVirtualBox> virtualBox, ComPtr<ISession> session)
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r14611 r14613  
    107107
    108108/* Disable global optimizations for MSC 8.0/64 to make it compile in reasonable
    109    time. MSC 7.1/32 doesn't have any trouble with it. */
    110 #if defined(_MSC_VER) && defined(RT_ARCH_AMD64)
     109   time. MSC 7.1/32 doesn't have quite as much trouble with it, but still
     110   sufficient to qualify for this hack as well since this code isn't performance
     111   critical and probably won't gain much from the extra optimizing in real life. */
     112#if defined(_MSC_VER)
    111113# pragma optimize("g", off)
    112114#endif
     
    18511853}
    18521854
     1855#if defined(_MSC_VER)
     1856# pragma optimize("", on)
     1857#endif
     1858
    18531859int handleShowVMInfo(int argc, char *argv[],
    18541860                     ComPtr<IVirtualBox> virtualBox, ComPtr<ISession> session)
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