summaryrefslogtreecommitdiff
path: root/src/gc
diff options
context:
space:
mode:
authorSinan Kaya <41809318+franksinankaya@users.noreply.github.com>2019-03-18 14:27:59 -0400
committerBruce Forstall <brucefo@microsoft.com>2019-03-18 11:27:59 -0700
commit6100a9faf1c29b06aed3ad5bef00ce905880309d (patch)
treee8bc35370150361fdc88d6af6d5e9c66109b83d8 /src/gc
parentd9781f1d81b06ea1562521aea6d278ca876c82ad (diff)
downloadcoreclr-6100a9faf1c29b06aed3ad5bef00ce905880309d.tar.gz
coreclr-6100a9faf1c29b06aed3ad5bef00ce905880309d.tar.bz2
coreclr-6100a9faf1c29b06aed3ad5bef00ce905880309d.zip
Fix explicit constructor calls and Remove multi-line comments (#23162)
* fix implicit constructor call * extern c format patch * muti-line * Remove direct constructor call * Conversion * Need paranthesis * Return value on resize * declspec(Thread) * Ignore warnings for GCC * Formatting issues * Move cast to constant
Diffstat (limited to 'src/gc')
-rw-r--r--src/gc/sample/gcenv.ee.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gc/sample/gcenv.ee.cpp b/src/gc/sample/gcenv.ee.cpp
index 9a4e9c9a74..687fd5624b 100644
--- a/src/gc/sample/gcenv.ee.cpp
+++ b/src/gc/sample/gcenv.ee.cpp
@@ -100,7 +100,11 @@ uint32_t CLREventStatic::Wait(uint32_t dwMilliseconds, bool bAlertable)
return result;
}
+#ifndef __GNUC__
__declspec(thread) Thread * pCurrentThread;
+#else // !__GNUC__
+thread_local Thread * pCurrentThread;
+#endif // !__GNUC__
Thread * GetThread()
{