VirtualBox

Changeset 48189 in vbox


Ignore:
Timestamp:
Aug 30, 2013 12:36:50 PM (11 years ago)
Author:
vboxsync
Message:

log-vbox.cpp: Don't try create a logger with interrupts or preemption disabled on mac os x.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/VBox/log-vbox.cpp

    r46035 r48189  
    424424
    425425#else /* IN_RING0 */
     426
     427    /* Some platforms has trouble allocating memory with interrupts and/or
     428       preemption disabled. Check and fail before we panic. */
     429# if defined(RT_OS_DARWIN)
     430    if (   !ASMIntAreEnabled()
     431        || !RTThreadPreemptIsEnabled(NIL_RTTHREAD))
     432        return NULL;
     433# endif
     434
    426435# ifndef IN_GUEST
    427436    rc = RTLogCreate(&pLogger, 0, NULL, "VBOX_LOG", RT_ELEMENTS(g_apszGroups), &g_apszGroups[0], RTLOGDEST_FILE, "VBox-ring0.log");
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