Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit ded38ce

Browse files
authored
Merge pull request #17382 from weshaggard/MergeMaster21
[release/2.1] Merge master into release/2.1
2 parents c3786e3 + 1638d65 commit ded38ce

File tree

72 files changed

+1269
-3826
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+1269
-3826
lines changed

BuildToolsVersion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.0-preview3-02629-02
1+
2.1.0-preview3-02631-01

ILAsmVersion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.0-preview3-26329-01
1+
2.1.0-preview3-26331-05

dependencies.props

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@
2323

2424
<!-- Source of truth for dependency tooling: the commit hash of the dotnet/versions master branch as of the last auto-upgrade. -->
2525
<PropertyGroup>
26-
<CoreFxCurrentRef>fc1fbe0b638a97baf2aa3bf403a7db7dbfc0b8b5</CoreFxCurrentRef>
27-
<CoreClrCurrentRef>fc1fbe0b638a97baf2aa3bf403a7db7dbfc0b8b5</CoreClrCurrentRef>
28-
<BuildToolsCurrentRef>0e6f6fa6b335fa1e0c26c6f24031003cb2d48b81</BuildToolsCurrentRef>
29-
<PgoDataCurrentRef>11d07e3818c16b6b43be0fc3379b9719dc0cf8b9</PgoDataCurrentRef>
26+
<CoreFxCurrentRef>2d7ffd7ca4f02a3096328ef07797070b7490e46b</CoreFxCurrentRef>
27+
<CoreClrCurrentRef>2d7ffd7ca4f02a3096328ef07797070b7490e46b</CoreClrCurrentRef>
28+
<BuildToolsCurrentRef>3ea5068d11ab2844483e26cd71bf3c50216f9fe5</BuildToolsCurrentRef>
29+
<PgoDataCurrentRef>553f30357d08df4ed6d32f70f3478a76f5db79c2</PgoDataCurrentRef>
3030
</PropertyGroup>
3131

3232
<!-- Tests/infrastructure dependency versions. -->
3333
<PropertyGroup>
34-
<MicrosoftPrivateCoreFxNETCoreAppPackageVersion>4.5.0-preview3-26329-05</MicrosoftPrivateCoreFxNETCoreAppPackageVersion>
35-
<MicrosoftNETCorePlatformsPackageVersion>2.1.0-preview3-26329-05</MicrosoftNETCorePlatformsPackageVersion>
34+
<MicrosoftPrivateCoreFxNETCoreAppPackageVersion>4.5.0-preview3-26331-05</MicrosoftPrivateCoreFxNETCoreAppPackageVersion>
35+
<MicrosoftNETCorePlatformsPackageVersion>2.1.0-preview3-26331-05</MicrosoftNETCorePlatformsPackageVersion>
3636
<PgoDataPackageVersion>99.99.99-master-20180228-0037</PgoDataPackageVersion>
37-
<MicrosoftNETCoreRuntimeCoreCLRPackageVersion>2.1.0-preview3-26329-01</MicrosoftNETCoreRuntimeCoreCLRPackageVersion>
37+
<MicrosoftNETCoreRuntimeCoreCLRPackageVersion>2.1.0-preview3-26331-05</MicrosoftNETCoreRuntimeCoreCLRPackageVersion>
3838
<XunitPackageVersion>2.2.0-beta2-build3300</XunitPackageVersion>
3939
<XunitConsoleNetcorePackageVersion>1.0.2-prerelease-00177</XunitConsoleNetcorePackageVersion>
4040
<XunitPerformanceApiPackageVersion>1.0.0-beta-build0015</XunitPerformanceApiPackageVersion>
@@ -51,7 +51,7 @@
5151
<!-- Package versions used as toolsets -->
5252
<PropertyGroup>
5353
<FeedTasksPackage>Microsoft.DotNet.Build.Tasks.Feed</FeedTasksPackage>
54-
<FeedTasksPackageVersion>2.1.0-preview3-02629-02</FeedTasksPackageVersion>
54+
<FeedTasksPackageVersion>2.1.0-preview3-02631-01</FeedTasksPackageVersion>
5555
</PropertyGroup>
5656

5757
<!-- Package dependency verification/auto-upgrade configuration. -->

src/debug/di/process.cpp

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -11582,54 +11582,6 @@ void CordbProcess::HandleSyncCompleteRecieved()
1158211582

1158311583
#ifdef FEATURE_INTEROP_DEBUGGING
1158411584

11585-
// Get a Thread's _user_ starting address (the real starting address may be some
11586-
// OS shim.)
11587-
// This may return NULL for the Async-Break thread.
11588-
void* GetThreadUserStartAddr(const DEBUG_EVENT* pCreateThreadEvent)
11589-
{
11590-
// On Win7 and above, we can trust the lpStartAddress field of the CREATE_THREAD_DEBUG_EVENT
11591-
// to be the user start address (the actual OS start address is an implementation detail that
11592-
// doesn't need to be exposed to users). Note that we are assuming that the target process
11593-
// is running on Win7 if mscordbi is. If we ever have some remoting scenario where the target
11594-
// can run on a different windows machine with a different OS version we will need a way to
11595-
// determine the target's OS version
11596-
if(RunningOnWin7())
11597-
{
11598-
return pCreateThreadEvent->u.CreateThread.lpStartAddress;
11599-
}
11600-
11601-
// On pre-Win7 OSes, we rely on an OS implementation detail to get the real user thread start:
11602-
// it exists in EAX at thread start time.
11603-
// Note that for a brief period of time there was a GetThreadStartInformation API in Longhorn
11604-
// we could use for this, but it was removed during the Longhorn reset.
11605-
HANDLE hThread = pCreateThreadEvent->u.CreateThread.hThread;
11606-
#if defined(DBG_TARGET_X86)
11607-
// Grab the thread's context.
11608-
DT_CONTEXT c;
11609-
c.ContextFlags = DT_CONTEXT_FULL;
11610-
BOOL succ = DbiGetThreadContext(hThread, &c);
11611-
11612-
if (succ)
11613-
{
11614-
return (void*) c.Eax;
11615-
}
11616-
#elif defined(DBG_TARGET_AMD64)
11617-
DT_CONTEXT c;
11618-
c.ContextFlags = DT_CONTEXT_FULL;
11619-
BOOL succ = DbiGetThreadContext(hThread, &c);
11620-
11621-
if (succ)
11622-
{
11623-
return (void*) c.Rcx;
11624-
}
11625-
#else
11626-
PORTABILITY_ASSERT("port GetThreadUserStartAddr");
11627-
#endif
11628-
11629-
return NULL;
11630-
}
11631-
11632-
1163311585
//---------------------------------------------------------------------------------------
1163411586
//
1163511587
// Get (create if needed) the unmanaged thread for an unmanaged debug event.
@@ -11706,7 +11658,7 @@ CordbUnmanagedThread * CordbProcess::GetUnmanagedThreadFromEvent(const DEBUG_EVE
1170611658
UpdateRightSideDCB();
1170711659
if ((this->GetDCB()->m_helperThreadStartAddr != NULL) && (pUnmanagedThread != NULL))
1170811660
{
11709-
void * pStartAddr = GetThreadUserStartAddr(pEvent);
11661+
void * pStartAddr = pEvent->u.CreateThread.lpStartAddress;
1171011662

1171111663
if (pStartAddr == this->GetDCB()->m_helperThreadStartAddr)
1171211664
{

src/debug/ee/debugger.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13525,8 +13525,7 @@ void Debugger::UnhandledHijackWorker(CONTEXT * pContext, EXCEPTION_RECORD * pRec
1352513525
// On Win7 WatsonLastChance returns CONTINUE_SEARCH for unhandled exceptions execpt stack overflow, and
1352613526
// lets OS launch debuggers for us. Before the unhandled exception reaches the OS, CLR UEF has already
1352713527
// processed this unhandled exception. Thus, we should not call into CLR UEF again if it is the case.
13528-
if (RunningOnWin7() &&
13529-
pThread &&
13528+
if (pThread &&
1353013529
(pThread->HasThreadStateNC(Thread::TSNC_ProcessedUnhandledException) ||
1353113530
pThread->HasThreadStateNC(Thread::TSNC_AppDomainContainUnhandled) ||
1353213531
fSOException))

src/gc/env/gcenv.object.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@ class ObjHeader
3636

3737
static_assert(sizeof(ObjHeader) == sizeof(uintptr_t), "this assumption is made by the VM!");
3838

39-
#define MTFlag_ContainsPointers 0x0100
40-
#define MTFlag_HasFinalizer 0x0010
41-
#define MTFlag_IsArray 0x0008
42-
#define MTFlag_Collectible 0x1000
43-
#define MTFlag_HasComponentSize 0x8000
39+
#define MTFlag_ContainsPointers 0x0100
40+
#define MTFlag_HasCriticalFinalizer 0x0800
41+
#define MTFlag_HasFinalizer 0x0010
42+
#define MTFlag_IsArray 0x0008
43+
#define MTFlag_Collectible 0x1000
44+
#define MTFlag_HasComponentSize 0x8000
4445

4546
class MethodTable
4647
{
@@ -103,7 +104,7 @@ class MethodTable
103104

104105
bool HasCriticalFinalizer()
105106
{
106-
return false;
107+
return (m_flags & MTFlag_HasCriticalFinalizer) != 0;
107108
}
108109

109110
bool IsArray()

0 commit comments

Comments
 (0)