From 3b5550f9892bce0e17cc50f26e655f2215ce3c9e Mon Sep 17 00:00:00 2001 From: Jan Vorlicek Date: Thu, 21 Jul 2016 18:42:40 +0200 Subject: Refactor GC background thread creation (#6384) This change modifies the GCToEEInterface::CreateBackgroundThread so that it returns a fully initialized and running thread. --- src/gc/env/gcenv.base.h | 7 ------- src/gc/env/gcenv.ee.h | 3 +-- 2 files changed, 1 insertion(+), 9 deletions(-) (limited to 'src/gc/env') 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__ -- cgit v1.2.3