VirtualBox

Changeset 34256 in vbox for trunk/src/VBox/Runtime/r3/win


Ignore:
Timestamp:
Nov 22, 2010 3:55:00 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68004
Message:

IPRT: Must clear the TLS entry holding RTTHREAD before freeing the structure or the electric fence heap may cause a crash when blocking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/thread-win.cpp

    r32914 r34256  
    7878        TlsSetValue(g_dwSelfTLS, NULL);
    7979    }
     80}
     81
     82
     83void rtThreadNativeDestroy(PRTTHREADINT pThread)
     84{
     85    if (pThread == (PRTTHREADINT)TlsGetValue(g_dwSelfTLS))
     86        TlsSetValue(g_dwSelfTLS, NULL);
    8087}
    8188
Note: See TracChangeset for help on using the changeset viewer.

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