vbox的更動 13832 路徑 trunk/src/VBox/Runtime/common
- 時間撮記:
- 2008-11-5 上午02:01:12 (16 年 以前)
- 位置:
- trunk/src/VBox/Runtime/common
- 檔案:
-
- 修改 6 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Runtime/common/log/log.cpp
r13717 r13832 34 34 *******************************************************************************/ 35 35 #include <iprt/log.h> 36 #ifndef IN_ GC36 #ifndef IN_RC 37 37 # include <iprt/alloc.h> 38 38 # include <iprt/process.h> … … 80 80 * Internal Functions * 81 81 *******************************************************************************/ 82 #ifndef IN_ GC82 #ifndef IN_RC 83 83 static unsigned rtlogGroupFlags(const char *psz); 84 84 #endif … … 94 94 * Global Variables * 95 95 *******************************************************************************/ 96 #ifdef IN_ GC96 #ifdef IN_RC 97 97 /** Default logger instance. */ 98 98 extern "C" DECLIMPORT(RTLOGGERRC) g_Logger; 99 #else /* !IN_ GC */99 #else /* !IN_RC */ 100 100 /** Default logger instance. */ 101 101 static PRTLOGGER g_pLogger; 102 #endif /* !IN_ GC */102 #endif /* !IN_RC */ 103 103 #ifdef IN_RING3 104 104 /** The RTThreadGetWriteLockCount() change caused by the logger mutex semaphore. */ … … 140 140 DECLINLINE(int) rtlogLock(PRTLOGGER pLogger) 141 141 { 142 #ifndef IN_ GC142 #ifndef IN_RC 143 143 if (pLogger->MutexSem != NIL_RTSEMFASTMUTEX) 144 144 { … … 163 163 DECLINLINE(void) rtlogUnlock(PRTLOGGER pLogger) 164 164 { 165 #ifndef IN_ GC165 #ifndef IN_RC 166 166 if (pLogger->MutexSem != NIL_RTSEMFASTMUTEX) 167 167 RTSemFastMutexRelease(pLogger->MutexSem); … … 171 171 172 172 173 #ifndef IN_ GC173 #ifndef IN_RC 174 174 /** 175 175 * Create a logger instance, comprehensive version. … … 1212 1212 } 1213 1213 1214 #endif /* !IN_ GC */1214 #endif /* !IN_RC */ 1215 1215 1216 1216 … … 1356 1356 if (!pLogger) 1357 1357 { 1358 #ifdef IN_ GC1358 #ifdef IN_RC 1359 1359 pLogger = &g_Logger; 1360 1360 #else … … 1370 1370 if (pLogger->offScratch) 1371 1371 { 1372 #ifndef IN_ GC1372 #ifndef IN_RC 1373 1373 /* 1374 1374 * Acquire logger instance sem. … … 1383 1383 rtlogFlush(pLogger); 1384 1384 1385 #ifndef IN_ GC1385 #ifndef IN_RC 1386 1386 /* 1387 1387 * Release the semaphore. … … 1401 1401 RTDECL(PRTLOGGER) RTLogDefaultInstance(void) 1402 1402 { 1403 #ifdef IN_ GC1403 #ifdef IN_RC 1404 1404 return &g_Logger; 1405 1405 1406 #else /* !IN_ GC */1406 #else /* !IN_RC */ 1407 1407 # ifdef IN_RING0 1408 1408 /* … … 1425 1425 g_pLogger = RTLogDefaultInit(); 1426 1426 return g_pLogger; 1427 #endif /* !IN_ GC */1428 } 1429 1430 1431 #ifndef IN_ GC1427 #endif /* !IN_RC */ 1428 } 1429 1430 1431 #ifndef IN_RC 1432 1432 /** 1433 1433 * Sets the default logger instance. … … 1440 1440 return (PRTLOGGER)ASMAtomicXchgPtr((void * volatile *)&g_pLogger, pLogger); 1441 1441 } 1442 #endif /* !IN_ GC */1442 #endif /* !IN_RC */ 1443 1443 1444 1444 … … 1580 1580 */ 1581 1581 if ( (pLogger->fFlags & RTLOGFLAGS_DISABLED) 1582 #ifndef IN_ GC1582 #ifndef IN_RC 1583 1583 || !pLogger->fDestFlags 1584 1584 #endif … … 1771 1771 static void rtlogFlush(PRTLOGGER pLogger) 1772 1772 { 1773 #ifndef IN_ GC1773 #ifndef IN_RC 1774 1774 if (pLogger->fDestFlags & RTLOGDEST_USER) 1775 1775 RTLogWriteUser(pLogger->achScratch, pLogger->offScratch); … … 1789 1789 RTLogWriteStdErr(pLogger->achScratch, pLogger->offScratch); 1790 1790 1791 # if (defined(IN_RING0) || defined(IN_ GC)) && !defined(LOG_NO_COM)1791 # if (defined(IN_RING0) || defined(IN_RC)) && !defined(LOG_NO_COM) 1792 1792 if (pLogger->fDestFlags & RTLOGDEST_COM) 1793 1793 RTLogWriteCom(pLogger->achScratch, pLogger->offScratch); 1794 1794 # endif 1795 #endif /* !IN_ GC */1795 #endif /* !IN_RC */ 1796 1796 1797 1797 if (pLogger->pfnFlush) … … 1916 1916 if (pLogger->fFlags & RTLOGFLAGS_PREFIX_TS) 1917 1917 { 1918 #if defined(IN_RING3) || defined(IN_ GC)1918 #if defined(IN_RING3) || defined(IN_RC) 1919 1919 uint64_t u64 = RTTimeNanoTS(); 1920 1920 #else … … 1968 1968 if (pLogger->fFlags & RTLOGFLAGS_PREFIX_MS_PROG) 1969 1969 { 1970 #if defined(IN_RING3) || defined(IN_ GC)1970 #if defined(IN_RING3) || defined(IN_RC) 1971 1971 uint64_t u64 = RTTimeProgramMilliTS(); 1972 1972 #else … … 2029 2029 if (pLogger->fFlags & RTLOGFLAGS_PREFIX_PID) 2030 2030 { 2031 #ifndef IN_ GC2031 #ifndef IN_RC 2032 2032 RTPROCESS Process = RTProcSelf(); 2033 2033 #else … … 2039 2039 if (pLogger->fFlags & RTLOGFLAGS_PREFIX_TID) 2040 2040 { 2041 #ifndef IN_ GC2041 #ifndef IN_RC 2042 2042 RTNATIVETHREAD Thread = RTThreadNativeSelf(); 2043 2043 #else … … 2051 2051 #ifdef IN_RING3 2052 2052 const char *pszName = RTThreadSelfName(); 2053 #elif defined IN_ GC2053 #elif defined IN_RC 2054 2054 const char *pszName = "EMT-GC"; 2055 2055 #else -
trunk/src/VBox/Runtime/common/log/logrel.cpp
r12099 r13832 34 34 *******************************************************************************/ 35 35 #include <iprt/log.h> 36 #ifndef IN_ GC36 #ifndef IN_RC 37 37 # include <iprt/alloc.h> 38 38 # include <iprt/process.h> … … 63 63 * Global Variables * 64 64 *******************************************************************************/ 65 #ifdef IN_ GC65 #ifdef IN_RC 66 66 /** Default relese logger instance. */ 67 67 extern "C" DECLIMPORT(RTLOGGERRC) g_RelLogger; 68 #else /* !IN_ GC */68 #else /* !IN_RC */ 69 69 /** Default release logger instance. */ 70 70 static PRTLOGGER g_pRelLogger; 71 #endif /* !IN_ GC */71 #endif /* !IN_RC */ 72 72 73 73 … … 80 80 RTDECL(PRTLOGGER) RTLogRelDefaultInstance(void) 81 81 { 82 #ifdef IN_ GC82 #ifdef IN_RC 83 83 return &g_RelLogger; 84 #else /* !IN_ GC */84 #else /* !IN_RC */ 85 85 return g_pRelLogger; 86 #endif /* !IN_ GC */86 #endif /* !IN_RC */ 87 87 } 88 88 89 89 90 #ifndef IN_ GC90 #ifndef IN_RC 91 91 /** 92 92 * Sets the default logger instance. … … 99 99 return (PRTLOGGER)ASMAtomicXchgPtr((void * volatile *)&g_pRelLogger, pLogger); 100 100 } 101 #endif /* !IN_ GC */101 #endif /* !IN_RC */ 102 102 103 103 -
trunk/src/VBox/Runtime/common/misc/sanity.h
r9212 r13832 46 46 # error "defined(IN_RING0) && ARCH_BITS != R0_ARCH_BITS" 47 47 #endif 48 #if defined(IN_ GC) && ARCH_BITS != 3249 # error "defined(IN_ GC) && ARCH_BITS != 32"48 #if defined(IN_RC) && ARCH_BITS != 32 49 # error "defined(IN_RC) && ARCH_BITS != 32" 50 50 #endif 51 51 #if (defined(IN_RING0) || defined(IN_RING3)) && HC_ARCH_BITS != ARCH_BITS 52 52 # error "(defined(IN_RING0) || defined(IN_RING3)) && HC_ARCH_BITS != ARCH_BITS" 53 53 #endif 54 #if defined(IN_ GC) && GC_ARCH_BITS != 64 && GC_ARCH_BITS != ARCH_BITS55 # 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" 56 56 #endif 57 57 … … 131 131 AssertCompileSize(RTGCUINTREG, 8); 132 132 133 # ifdef IN_ GC133 # ifdef IN_RC 134 134 /*AssertCompileSize(RTCCINTREG, 8);*/ 135 135 /* Hack alert: there is no such thing as a GC context when GC_ARCH_BITS == 64; it's still 32 bits */ … … 146 146 AssertCompileSize(RTGCUINTREG, 4); 147 147 148 # ifdef IN_ GC148 # ifdef IN_RC 149 149 /*AssertCompileSize(RTCCINTREG, 4);*/ 150 150 AssertCompileSize(RTCCUINTREG, 4); -
trunk/src/VBox/Runtime/common/string/strformattype.cpp
r12906 r13832 71 71 * In GC the offset is relative to g_aTypes[0], so that &g_aTypes[0] + offHandler 72 72 * gives the actual address. */ 73 #ifdef IN_ GC73 #ifdef IN_RC 74 74 int32_t offHandler; 75 75 #else … … 298 298 g_aTypes[i].cchType = (uint8_t)cchType; 299 299 g_aTypes[i].pvUser = pvUser; 300 #ifdef IN_ GC300 #ifdef IN_RC 301 301 g_aTypes[i].offHandler = (intptr_t)pfnHandler - (intptr_t)&g_aTypes[0]; 302 302 #else … … 448 448 if (RT_LIKELY(i >= 0)) 449 449 { 450 #ifdef IN_ GC450 #ifdef IN_RC 451 451 PFNRTSTRFORMATTYPE pfnHandler = (PFNRTSTRFORMATTYPE)((intptr_t)&g_aTypes[0] + g_aTypes[i].offHandler); 452 452 #else -
trunk/src/VBox/Runtime/common/time/timesupA.asm
r8281 r13832 93 93 94 94 %define ASYNC_GIP 95 %ifdef IN_ GC95 %ifdef IN_RC 96 96 %undef NEED_TRANSACTION_ID 97 97 %endif … … 110 110 111 111 %define ASYNC_GIP 112 %ifdef IN_ GC112 %ifdef IN_RC 113 113 %undef NEED_TRANSACTION_ID 114 114 %endif -
trunk/src/VBox/Runtime/common/time/timesupref.cpp
r8245 r13832 50 50 51 51 #define ASYNC_GIP 52 #ifdef IN_ GC52 #ifdef IN_RC 53 53 # undef NEED_TRANSACTION_ID 54 54 #endif … … 70 70 71 71 #define ASYNC_GIP 72 #ifdef IN_ GC72 #ifdef IN_RC 73 73 # undef NEED_TRANSACTION_ID 74 74 #endif
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器