Changeset 24986 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Nov 26, 2009 10:59:03 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/log/log.cpp
r23215 r24986 295 295 * Emit wrapper code. 296 296 */ 297 #if defined(LOG_USE_C99) && defined(RT_WITHOUT_EXEC_ALLOC) 298 pu8Code = (uint8_t *)RTMemAlloc(64); 299 #else 297 300 pu8Code = (uint8_t *)RTMemExecAlloc(64); 301 #endif 298 302 if (pu8Code) 299 303 { 300 304 pLogger->pfnLogger = *(PFNRTLOGGER*)&pu8Code; 301 #if def RT_ARCH_AMD64305 #if defined(RT_ARCH_AMD64) || defined(RT_LOG_ 302 306 /* this wrapper will not be used on AMD64, we will be requiring C99 compilers there. */ 303 307 *pu8Code++ = 0xcc; … … 425 429 RTFileClose(pLogger->File); 426 430 #endif 431 #if defined(LOG_USE_C99) && defined(RT_WITHOUT_EXEC_ALLOC) 432 RTMemFree(*(void **)&pLogger->pfnLogger); 433 #else 427 434 RTMemExecFree(*(void **)&pLogger->pfnLogger); 435 #endif 428 436 } 429 437 else … … 581 589 if (pLogger->pfnLogger) 582 590 { 591 #if defined(LOG_USE_C99) && defined(RT_WITHOUT_EXEC_ALLOC) 592 RTMemFree(*(void **)&pLogger->pfnLogger); 593 #else 583 594 RTMemExecFree(*(void **)&pLogger->pfnLogger); 595 #endif 584 596 pLogger->pfnLogger = NULL; 585 597 }
Note:
See TracChangeset
for help on using the changeset viewer.