diff options
author | Jan Vorlicek <janvorli@microsoft.com> | 2016-07-21 18:42:40 +0200 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2016-07-21 09:42:40 -0700 |
commit | 3b5550f9892bce0e17cc50f26e655f2215ce3c9e (patch) | |
tree | a275d330257fd6f705b227ccdf7d64ebdf90e26a /src/gc/env | |
parent | bfe11c1f9326134daf9dd6f471b1d0b947437cf0 (diff) | |
download | coreclr-3b5550f9892bce0e17cc50f26e655f2215ce3c9e.tar.gz coreclr-3b5550f9892bce0e17cc50f26e655f2215ce3c9e.tar.bz2 coreclr-3b5550f9892bce0e17cc50f26e655f2215ce3c9e.zip |
Refactor GC background thread creation (#6384)
This change modifies the GCToEEInterface::CreateBackgroundThread so that it returns
a fully initialized and running thread.
Diffstat (limited to 'src/gc/env')
-rw-r--r-- | src/gc/env/gcenv.base.h | 7 | ||||
-rw-r--r-- | src/gc/env/gcenv.ee.h | 3 |
2 files changed, 1 insertions, 9 deletions
diff --git a/src/gc/env/gcenv.base.h b/src/gc/env/gcenv.base.h index 329ac6e1dc..83726f4eab 100644 --- a/src/gc/env/gcenv.base.h +++ b/src/gc/env/gcenv.base.h @@ -463,13 +463,6 @@ public: static HANDLE GetFinalizerEvent(); }; -#ifdef FEATURE_REDHAWK -typedef uint32_t (__stdcall *BackgroundCallback)(void* pCallbackContext); -REDHAWK_PALIMPORT bool REDHAWK_PALAPI PalStartBackgroundGCThread(BackgroundCallback callback, void* pCallbackContext); -#endif // FEATURE_REDHAWK - -void DestroyThread(Thread * pThread); - bool IsGCSpecialThread(); inline bool dbgOnly_IsSpecialEEThread() diff --git a/src/gc/env/gcenv.ee.h b/src/gc/env/gcenv.ee.h index 42f47c4b18..0c1fd4988a 100644 --- a/src/gc/env/gcenv.ee.h +++ b/src/gc/env/gcenv.ee.h @@ -74,13 +74,12 @@ public: static void EnablePreemptiveGC(Thread * pThread); static void DisablePreemptiveGC(Thread * pThread); - static void SetGCSpecial(Thread * pThread); static alloc_context * GetAllocContext(Thread * pThread); static bool CatchAtSafePoint(Thread * pThread); static void GcEnumAllocContexts(enum_alloc_context_func* fn, void* param); - static bool CreateBackgroundThread(Thread** thread, GCBackgroundThreadFunction threadStart, void* arg); + static Thread* CreateBackgroundThread(GCBackgroundThreadFunction threadStart, void* arg); }; #endif // __GCENV_EE_H__ |