Remove CORECLR_GDBJIT length check in gdbjit (dotnet/coreclr#10016)
authorchunseoklee <chunseoklee@naver.com>
Wed, 8 Mar 2017 09:39:40 +0000 (18:39 +0900)
committerJan Vorlicek <janvorli@microsoft.com>
Wed, 8 Mar 2017 09:39:40 +0000 (10:39 +0100)
realted issue: https://github.com/dotnet/coreclr/issues/10003

Commit migrated from https://github.com/dotnet/coreclr/commit/92fc7a07e0f1ac3b5a49d173ce42dbabace79aec

src/coreclr/src/vm/gdbjit.cpp

index 0b49fa5..86e8679 100644 (file)
@@ -1739,7 +1739,7 @@ void NotifyGdb::MethodCompiled(MethodDesc* MethodDescPtr)
     {
         cCharsNeeded = GetEnvironmentVariableW(W("CORECLR_GDBJIT"), NULL, 0);
 
-        if((cCharsNeeded == 0) || (cCharsNeeded >= MAX_LONGPATH))
+        if(cCharsNeeded == 0)
             return;
         wszModuleNames = new WCHAR[cCharsNeeded+1];
         cCharsNeeded = GetEnvironmentVariableW(W("CORECLR_GDBJIT"), wszModuleNames, cCharsNeeded);