VirtualBox

Changeset 72721 in vbox


Ignore:
Timestamp:
Jun 28, 2018 1:44:23 PM (7 years ago)
Author:
vboxsync
Message:

Replace explicit uses of lsan_ignore_object() by RTMEM_WILL_LEAK().
bugref:8019: GCC sanitisers.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/scmsubversion.cpp

    r72602 r72721  
    753753# endif
    754754                        rc = RTLdrLoadEx(szPath, &ahMods[iLib], RTLDRLOAD_FLAGS_NT_SEARCH_DLL_LOAD_DIR , NULL);
    755 #ifdef VBOX_WITH_GCC_SANITIZER
    756755                        if (RT_SUCCESS(rc))
    757                             __lsan_ignore_object(ahMods[iLib]);
    758 #endif
    759                         if (RT_SUCCESS(rc))
     756                        {
     757                            RTMEM_WILL_LEAK(ahMods[iLib]);
    760758                            break;
     759                        }
    761760                    }
    762761                }
  • trunk/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptthread.c

    r72602 r72721  
    521521                rv = RTThreadCreateF(&hThread, _pt_iprt_root, thred, stackSize, enmType, fFlags, "nspr-%u", ASMAtomicIncU32(&s_iThread));
    522522                if (RT_SUCCESS(rv)) {
    523 #ifdef VBOX_WITH_GCC_SANITIZER
    524                         __lsan_ignore_object(hThread);
     523#ifdef VBOX_USE_IPRT_IN_NSPR
     524                        RTMEM_WILL_LEAK(hThread);
    525525#endif
    526526                        id = (pthread_t)RTThreadGetNative(hThread);
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