summaryrefslogtreecommitdiff
path: root/src/pal/src/init
diff options
context:
space:
mode:
authorKoundinya Veluri <kouvel@microsoft.com>2017-01-30 14:47:29 -0800
committerGitHub <noreply@github.com>2017-01-30 14:47:29 -0800
commitb390ea94d52a9089e24973a12a6413bc8eb9bc3d (patch)
tree24566cbdccc34c3c3f352ed813e6bd709ea1416d /src/pal/src/init
parentb9495704513bf345903e146a5d2a11517b932d15 (diff)
downloadcoreclr-b390ea94d52a9089e24973a12a6413bc8eb9bc3d.tar.gz
coreclr-b390ea94d52a9089e24973a12a6413bc8eb9bc3d.tar.bz2
coreclr-b390ea94d52a9089e24973a12a6413bc8eb9bc3d.zip
Fix Thread constructor with stack size argument (#9186)
Fix Thread constructor with stack size argument Functional fix for #9158 and #9167
Diffstat (limited to 'src/pal/src/init')
-rw-r--r--src/pal/src/init/pal.cpp17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/pal/src/init/pal.cpp b/src/pal/src/init/pal.cpp
index 0bda27644e..e6db7dca2e 100644
--- a/src/pal/src/init/pal.cpp
+++ b/src/pal/src/init/pal.cpp
@@ -18,6 +18,9 @@ Abstract:
--*/
+#include "pal/dbgmsg.h"
+SET_DEFAULT_DEBUG_CHANNEL(PAL); // some headers have code with asserts, so do this first
+
#include "pal/thread.hpp"
#include "pal/synchobjects.hpp"
#include "pal/procobj.hpp"
@@ -27,7 +30,6 @@ Abstract:
#include "../objmgr/shmobjectmanager.hpp"
#include "pal/seh.hpp"
#include "pal/palinternal.h"
-#include "pal/dbgmsg.h"
#include "pal/sharedmemory.h"
#include "pal/shmemory.h"
#include "pal/process.h"
@@ -90,8 +92,6 @@ using namespace CorUnix;
extern "C" BOOL CRTInitStdStreams( void );
-SET_DEFAULT_DEBUG_CHANNEL(PAL);
-
Volatile<INT> init_count = 0;
Volatile<BOOL> shutdown_intent = 0;
Volatile<LONG> g_coreclrInitialized = 0;
@@ -314,17 +314,6 @@ Initialize(
#endif // HAVE_MACH_EXCEPTIONS
//
- // Initialize global thread data
- //
-
- palError = InitializeGlobalThreadData();
- if (NO_ERROR != palError)
- {
- ERROR("Unable to initialize thread data\n");
- goto CLEANUP1;
- }
-
- //
// Allocate the initial thread data
//