VirtualBox

vbox的更動 13832 路徑 trunk/src/VBox/Runtime/common


忽略:
時間撮記:
2008-11-5 上午02:01:12 (16 年 以前)
作者:
vboxsync
訊息:

IN_GC -> IN_RC.

位置:
trunk/src/VBox/Runtime/common
檔案:
修改 6 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Runtime/common/log/log.cpp

    r13717 r13832  
    3434*******************************************************************************/
    3535#include <iprt/log.h>
    36 #ifndef IN_GC
     36#ifndef IN_RC
    3737# include <iprt/alloc.h>
    3838# include <iprt/process.h>
     
    8080*   Internal Functions                                                         *
    8181*******************************************************************************/
    82 #ifndef IN_GC
     82#ifndef IN_RC
    8383static unsigned rtlogGroupFlags(const char *psz);
    8484#endif
     
    9494*   Global Variables                                                           *
    9595*******************************************************************************/
    96 #ifdef IN_GC
     96#ifdef IN_RC
    9797/** Default logger instance. */
    9898extern "C" DECLIMPORT(RTLOGGERRC)   g_Logger;
    99 #else /* !IN_GC */
     99#else /* !IN_RC */
    100100/** Default logger instance. */
    101101static PRTLOGGER                    g_pLogger;
    102 #endif /* !IN_GC */
     102#endif /* !IN_RC */
    103103#ifdef IN_RING3
    104104/** The RTThreadGetWriteLockCount() change caused by the logger mutex semaphore. */
     
    140140DECLINLINE(int) rtlogLock(PRTLOGGER pLogger)
    141141{
    142 #ifndef IN_GC
     142#ifndef IN_RC
    143143    if (pLogger->MutexSem != NIL_RTSEMFASTMUTEX)
    144144    {
     
    163163DECLINLINE(void) rtlogUnlock(PRTLOGGER pLogger)
    164164{
    165 #ifndef IN_GC
     165#ifndef IN_RC
    166166    if (pLogger->MutexSem != NIL_RTSEMFASTMUTEX)
    167167        RTSemFastMutexRelease(pLogger->MutexSem);
     
    171171
    172172
    173 #ifndef IN_GC
     173#ifndef IN_RC
    174174/**
    175175 * Create a logger instance, comprehensive version.
     
    12121212}
    12131213
    1214 #endif /* !IN_GC */
     1214#endif /* !IN_RC */
    12151215
    12161216
     
    13561356    if (!pLogger)
    13571357    {
    1358 #ifdef IN_GC
     1358#ifdef IN_RC
    13591359        pLogger = &g_Logger;
    13601360#else
     
    13701370    if (pLogger->offScratch)
    13711371    {
    1372 #ifndef IN_GC
     1372#ifndef IN_RC
    13731373        /*
    13741374         * Acquire logger instance sem.
     
    13831383        rtlogFlush(pLogger);
    13841384
    1385 #ifndef IN_GC
     1385#ifndef IN_RC
    13861386        /*
    13871387         * Release the semaphore.
     
    14011401RTDECL(PRTLOGGER)   RTLogDefaultInstance(void)
    14021402{
    1403 #ifdef IN_GC
     1403#ifdef IN_RC
    14041404    return &g_Logger;
    14051405
    1406 #else /* !IN_GC */
     1406#else /* !IN_RC */
    14071407# ifdef IN_RING0
    14081408    /*
     
    14251425        g_pLogger = RTLogDefaultInit();
    14261426    return g_pLogger;
    1427 #endif /* !IN_GC */
    1428 }
    1429 
    1430 
    1431 #ifndef IN_GC
     1427#endif /* !IN_RC */
     1428}
     1429
     1430
     1431#ifndef IN_RC
    14321432/**
    14331433 * Sets the default logger instance.
     
    14401440    return (PRTLOGGER)ASMAtomicXchgPtr((void * volatile *)&g_pLogger, pLogger);
    14411441}
    1442 #endif /* !IN_GC */
     1442#endif /* !IN_RC */
    14431443
    14441444
     
    15801580     */
    15811581    if (    (pLogger->fFlags & RTLOGFLAGS_DISABLED)
    1582 #ifndef IN_GC
     1582#ifndef IN_RC
    15831583        || !pLogger->fDestFlags
    15841584#endif
     
    17711771static void rtlogFlush(PRTLOGGER pLogger)
    17721772{
    1773 #ifndef IN_GC
     1773#ifndef IN_RC
    17741774    if (pLogger->fDestFlags & RTLOGDEST_USER)
    17751775        RTLogWriteUser(pLogger->achScratch, pLogger->offScratch);
     
    17891789        RTLogWriteStdErr(pLogger->achScratch, pLogger->offScratch);
    17901790
    1791 # if (defined(IN_RING0) || defined(IN_GC)) && !defined(LOG_NO_COM)
     1791# if (defined(IN_RING0) || defined(IN_RC)) && !defined(LOG_NO_COM)
    17921792    if (pLogger->fDestFlags & RTLOGDEST_COM)
    17931793        RTLogWriteCom(pLogger->achScratch, pLogger->offScratch);
    17941794# endif
    1795 #endif /* !IN_GC */
     1795#endif /* !IN_RC */
    17961796
    17971797    if (pLogger->pfnFlush)
     
    19161916                if (pLogger->fFlags & RTLOGFLAGS_PREFIX_TS)
    19171917                {
    1918 #if defined(IN_RING3) || defined(IN_GC)
     1918#if defined(IN_RING3) || defined(IN_RC)
    19191919                    uint64_t u64 = RTTimeNanoTS();
    19201920#else
     
    19681968                if (pLogger->fFlags & RTLOGFLAGS_PREFIX_MS_PROG)
    19691969                {
    1970 #if defined(IN_RING3) || defined(IN_GC)
     1970#if defined(IN_RING3) || defined(IN_RC)
    19711971                    uint64_t u64 = RTTimeProgramMilliTS();
    19721972#else
     
    20292029                if (pLogger->fFlags & RTLOGFLAGS_PREFIX_PID)
    20302030                {
    2031 #ifndef IN_GC
     2031#ifndef IN_RC
    20322032                    RTPROCESS Process = RTProcSelf();
    20332033#else
     
    20392039                if (pLogger->fFlags & RTLOGFLAGS_PREFIX_TID)
    20402040                {
    2041 #ifndef IN_GC
     2041#ifndef IN_RC
    20422042                    RTNATIVETHREAD Thread = RTThreadNativeSelf();
    20432043#else
     
    20512051#ifdef IN_RING3
    20522052                    const char *pszName = RTThreadSelfName();
    2053 #elif defined IN_GC
     2053#elif defined IN_RC
    20542054                    const char *pszName = "EMT-GC";
    20552055#else
  • trunk/src/VBox/Runtime/common/log/logrel.cpp

    r12099 r13832  
    3434*******************************************************************************/
    3535#include <iprt/log.h>
    36 #ifndef IN_GC
     36#ifndef IN_RC
    3737# include <iprt/alloc.h>
    3838# include <iprt/process.h>
     
    6363*   Global Variables                                                           *
    6464*******************************************************************************/
    65 #ifdef IN_GC
     65#ifdef IN_RC
    6666/** Default relese logger instance. */
    6767extern "C" DECLIMPORT(RTLOGGERRC)   g_RelLogger;
    68 #else /* !IN_GC */
     68#else /* !IN_RC */
    6969/** Default release logger instance. */
    7070static PRTLOGGER                    g_pRelLogger;
    71 #endif /* !IN_GC */
     71#endif /* !IN_RC */
    7272
    7373
     
    8080RTDECL(PRTLOGGER)   RTLogRelDefaultInstance(void)
    8181{
    82 #ifdef IN_GC
     82#ifdef IN_RC
    8383    return &g_RelLogger;
    84 #else /* !IN_GC */
     84#else /* !IN_RC */
    8585    return g_pRelLogger;
    86 #endif /* !IN_GC */
     86#endif /* !IN_RC */
    8787}
    8888
    8989
    90 #ifndef IN_GC
     90#ifndef IN_RC
    9191/**
    9292 * Sets the default logger instance.
     
    9999    return (PRTLOGGER)ASMAtomicXchgPtr((void * volatile *)&g_pRelLogger, pLogger);
    100100}
    101 #endif /* !IN_GC */
     101#endif /* !IN_RC */
    102102
    103103
  • trunk/src/VBox/Runtime/common/misc/sanity.h

    r9212 r13832  
    4646# error "defined(IN_RING0) && ARCH_BITS != R0_ARCH_BITS"
    4747#endif
    48 #if defined(IN_GC) && ARCH_BITS != 32
    49 # error "defined(IN_GC) && ARCH_BITS != 32"
     48#if defined(IN_RC) && ARCH_BITS != 32
     49# error "defined(IN_RC) && ARCH_BITS != 32"
    5050#endif
    5151#if (defined(IN_RING0) || defined(IN_RING3)) && HC_ARCH_BITS != ARCH_BITS
    5252# error "(defined(IN_RING0) || defined(IN_RING3)) && HC_ARCH_BITS != ARCH_BITS"
    5353#endif
    54 #if defined(IN_GC) && GC_ARCH_BITS != 64 && GC_ARCH_BITS != ARCH_BITS
    55 # error "defined(IN_GC) && GC_ARCH_BITS != ARCH_BITS"
     54#if defined(IN_RC) && GC_ARCH_BITS != 64 && GC_ARCH_BITS != ARCH_BITS
     55# error "defined(IN_RC) && GC_ARCH_BITS != ARCH_BITS"
    5656#endif
    5757
     
    131131AssertCompileSize(RTGCUINTREG, 8);
    132132
    133 # ifdef IN_GC
     133# ifdef IN_RC
    134134/*AssertCompileSize(RTCCINTREG, 8);*/
    135135/* Hack alert: there is no such thing as a GC context when GC_ARCH_BITS == 64; it's still 32 bits */
     
    146146AssertCompileSize(RTGCUINTREG, 4);
    147147
    148 # ifdef IN_GC
     148# ifdef IN_RC
    149149/*AssertCompileSize(RTCCINTREG, 4);*/
    150150AssertCompileSize(RTCCUINTREG, 4);
  • trunk/src/VBox/Runtime/common/string/strformattype.cpp

    r12906 r13832  
    7171     * In GC the offset is relative to g_aTypes[0], so that &g_aTypes[0] + offHandler
    7272     * gives the actual address. */
    73 #ifdef IN_GC
     73#ifdef IN_RC
    7474    int32_t             offHandler;
    7575#else
     
    298298            g_aTypes[i].cchType = (uint8_t)cchType;
    299299            g_aTypes[i].pvUser = pvUser;
    300 #ifdef IN_GC
     300#ifdef IN_RC
    301301            g_aTypes[i].offHandler = (intptr_t)pfnHandler - (intptr_t)&g_aTypes[0];
    302302#else
     
    448448    if (RT_LIKELY(i >= 0))
    449449    {
    450 #ifdef IN_GC
     450#ifdef IN_RC
    451451        PFNRTSTRFORMATTYPE pfnHandler = (PFNRTSTRFORMATTYPE)((intptr_t)&g_aTypes[0] + g_aTypes[i].offHandler);
    452452#else
  • trunk/src/VBox/Runtime/common/time/timesupA.asm

    r8281 r13832  
    9393
    9494%define ASYNC_GIP
    95 %ifdef IN_GC
     95%ifdef IN_RC
    9696 %undef NEED_TRANSACTION_ID
    9797%endif
     
    110110
    111111%define ASYNC_GIP
    112 %ifdef IN_GC
     112%ifdef IN_RC
    113113 %undef NEED_TRANSACTION_ID
    114114%endif
  • trunk/src/VBox/Runtime/common/time/timesupref.cpp

    r8245 r13832  
    5050
    5151#define ASYNC_GIP
    52 #ifdef IN_GC
     52#ifdef IN_RC
    5353# undef NEED_TRANSACTION_ID
    5454#endif
     
    7070
    7171#define ASYNC_GIP
    72 #ifdef IN_GC
     72#ifdef IN_RC
    7373# undef NEED_TRANSACTION_ID
    7474#endif
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette