Ubuntu commited on
Commit
ff994b2
·
1 Parent(s): e67edda

Add sample files

Browse files
data/raw_sample/diffs/000142d2876d424ad9e7b0e1f67f4fb5ca4d5a69.diff ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/coreclr/src/inc/clrconfigvalues.h b/src/coreclr/src/inc/clrconfigvalues.h
2
+ index 32d07226003dc7..f92167f0dfdb5b 100644
3
+ --- a/src/coreclr/src/inc/clrconfigvalues.h
4
+ +++ b/src/coreclr/src/inc/clrconfigvalues.h
5
+ @@ -712,7 +712,7 @@ RETAIL_CONFIG_DWORD_INFO(INTERNAL_EventPipeProcNumbers, W("EventPipeProcNumbers"
6
+ //
7
+ // Diagnostics Ports
8
+ //
9
+ -RRETAIL_CONFIG_DWORD_INFO_EX(EXTERNAL_DOTNET_DiagnosticPortSuspend, W("DOTNET_DiagnosticPortSuspend"), 1, "This will cause the runtime to pause during startup before major subsystems are started. Resume using the Diagnostics IPC ResumeStartup command.", CLRConfig::DontPrependCOMPlus_);
10
+ +RETAIL_CONFIG_DWORD_INFO_EX(EXTERNAL_DOTNET_DiagnosticPortSuspend, W("DOTNET_DiagnosticPortSuspend"), 0, "This will cause the runtime to pause during startup before major subsystems are started. Resume using the Diagnostics IPC ResumeStartup command.", CLRConfig::DontPrependCOMPlus_);
11
+ RETAIL_CONFIG_STRING_INFO_EX(EXTERNAL_DOTNET_DiagnosticPorts, W("DOTNET_DiagnosticPorts"), "A semicolon delimited list of additional Diagnostic Ports, where a Diagnostic Port is a NamedPipe path without '\\\\.\\pipe\\' on Windows or the full path of Unix Domain Socket on Linux/Unix followed by optional tags, e.g., '<path>,listen,nosuspend;<path>,connect'", CLRConfig::DontPrependCOMPlus_);
12
+
13
+ //
14
+ diff --git a/src/coreclr/src/vm/ipcstreamfactory.cpp b/src/coreclr/src/vm/ipcstreamfactory.cpp
15
+ index df18c7602585a0..75b7fb3a0c4117 100644
16
+ --- a/src/coreclr/src/vm/ipcstreamfactory.cpp
17
+ +++ b/src/coreclr/src/vm/ipcstreamfactory.cpp
18
+ @@ -15,11 +15,11 @@ CQuickArrayList<LPSTR> split(LPSTR string, LPCSTR delimiters)
19
+ {
20
+ CQuickArrayList<LPSTR> parts;
21
+ char *context;
22
+ - char *portConfig = nullptr;
23
+ + char *part = nullptr;
24
+ for (char *cursor = string; ; cursor = nullptr)
25
+ {
26
+ - if ((portConfig = strtok_s(cursor, delimiters, &context)) != nullptr)
27
+ - parts.Push(portConfig);
28
+ + if ((part = strtok_s(cursor, delimiters, &context)) != nullptr)
29
+ + parts.Push(part);
30
+ else
31
+ break;
32
+ }
33
+ @@ -110,11 +110,14 @@ bool IpcStreamFactory::Configure(ErrorCallback callback)
34
+
35
+ ASSERT(portConfigParts.Size() >= 1);
36
+ if (portConfigParts.Size() == 0)
37
+ + {
38
+ + fSuccess &= false;
39
+ continue;
40
+ + }
41
+
42
+ - builder.WithPath(portConfigParts.Pop());
43
+ - while (portConfigParts.Size() > 0)
44
+ + while (portConfigParts.Size() > 1)
45
+ builder.WithTag(portConfigParts.Pop());
46
+ + builder.WithPath(portConfigParts.Pop());
47
+
48
+ const bool fBuildSuccess = BuildAndAddPort(builder, callback);
49
+ STRESS_LOG1(LF_DIAGNOSTICS_PORT, LL_INFO10, "IpcStreamFactory::Configure - Diagnostic Port creation succeeded? %d \n", fBuildSuccess);
50
+ diff --git a/src/coreclr/src/vm/ipcstreamfactory.h b/src/coreclr/src/vm/ipcstreamfactory.h
51
+ index 80554b7d523884..cfd286beee0bba 100644
52
+ --- a/src/coreclr/src/vm/ipcstreamfactory.h
53
+ +++ b/src/coreclr/src/vm/ipcstreamfactory.h
54
+ @@ -32,7 +32,7 @@ class IpcStreamFactory
55
+ DiagnosticPortType Type = DiagnosticPortType::LISTEN;
56
+ DiagnosticPortSuspendMode SuspendMode = DiagnosticPortSuspendMode::NOSUSPEND;
57
+
58
+ - DiagnosticPortBuilder WithPath(LPSTR path) { Path = _strdup(path); return *this; }
59
+ + DiagnosticPortBuilder WithPath(LPSTR path) { Path = path != nullptr ? _strdup(path) : nullptr; return *this; }
60
+ DiagnosticPortBuilder WithType(DiagnosticPortType type) { Type = type; return *this; }
61
+ DiagnosticPortBuilder WithSuspendMode(DiagnosticPortSuspendMode mode) { SuspendMode = mode; return *this; }
62
+ DiagnosticPortBuilder WithTag(LPSTR tag)
63
+ diff --git a/src/tests/tracing/eventpipe/common/IpcUtils.cs b/src/tests/tracing/eventpipe/common/IpcUtils.cs
64
+ index bf17e1e27e837b..73e817859ad828 100644
65
+ --- a/src/tests/tracing/eventpipe/common/IpcUtils.cs
66
+ +++ b/src/tests/tracing/eventpipe/common/IpcUtils.cs
67
+ @@ -21,8 +21,8 @@ namespace Tracing.Tests.Common
68
+ {
69
+ public static class Utils
70
+ {
71
+ - public static readonly string DiagnosticsMonitorAddressEnvKey = "DOTNET_DiagnosticsMonitorAddress";
72
+ - public static readonly string DiagnosticsMonitorPauseOnStartEnvKey = "DOTNET_DiagnosticsMonitorPauseOnStart";
73
+ + public static readonly string DiagnosticPortsEnvKey = "DOTNET_DiagnosticPorts";
74
+ + public static readonly string DiagnosticPortSuspend = "DOTNET_DiagnosticPortSuspend";
75
+
76
+ public static async Task<T> WaitTillTimeout<T>(Task<T> task, TimeSpan timeout)
77
+ {
78
+ diff --git a/src/tests/tracing/eventpipe/pauseonstart/pauseonstart.cs b/src/tests/tracing/eventpipe/pauseonstart/pauseonstart.cs
79
+ index 4065cd586feef1..e87d367651b06b 100644
80
+ --- a/src/tests/tracing/eventpipe/pauseonstart/pauseonstart.cs
81
+ +++ b/src/tests/tracing/eventpipe/pauseonstart/pauseonstart.cs
82
+ @@ -28,7 +28,7 @@ public static async Task<bool> TEST_RuntimeResumesExecutionWithCommand()
83
+ var server = new ReverseServer(serverName);
84
+ Task<bool> subprocessTask = Utils.RunSubprocess(
85
+ currentAssembly: Assembly.GetExecutingAssembly(),
86
+ - environment: new Dictionary<string,string> { { Utils.DiagnosticsMonitorAddressEnvKey, serverName } },
87
+ + environment: new Dictionary<string,string> { { Utils.DiagnosticPortsEnvKey, $"{serverName},connect,suspend" } },
88
+ duringExecution: async (_) =>
89
+ {
90
+ Stream stream = await server.AcceptAsync();
91
+ @@ -56,7 +56,7 @@ public static async Task<bool> TEST_TracesHaveRelevantEvents()
92
+ using var memoryStream = new MemoryStream();
93
+ Task<bool> subprocessTask = Utils.RunSubprocess(
94
+ currentAssembly: Assembly.GetExecutingAssembly(),
95
+ - environment: new Dictionary<string,string> { { Utils.DiagnosticsMonitorAddressEnvKey, serverName } },
96
+ + environment: new Dictionary<string,string> { { Utils.DiagnosticPortsEnvKey, $"{serverName},connect,suspend" } },
97
+ duringExecution: async (pid) =>
98
+ {
99
+ Stream stream = await server.AcceptAsync();
100
+ @@ -114,7 +114,7 @@ public static async Task<bool> TEST_MultipleSessionsCanBeStartedWhilepaused()
101
+ using var memoryStream3 = new MemoryStream();
102
+ Task<bool> subprocessTask = Utils.RunSubprocess(
103
+ currentAssembly: Assembly.GetExecutingAssembly(),
104
+ - environment: new Dictionary<string,string> { { Utils.DiagnosticsMonitorAddressEnvKey, serverName } },
105
+ + environment: new Dictionary<string,string> { { Utils.DiagnosticPortsEnvKey, $"{serverName},connect,suspend" } },
106
+ duringExecution: async (pid) =>
107
+ {
108
+ Stream stream = await server.AcceptAsync();
109
+ @@ -207,7 +207,7 @@ public static async Task<bool> TEST_CanStartAndStopSessionWhilepaused()
110
+ using var memoryStream3 = new MemoryStream();
111
+ Task<bool> subprocessTask = Utils.RunSubprocess(
112
+ currentAssembly: Assembly.GetExecutingAssembly(),
113
+ - environment: new Dictionary<string,string> { { Utils.DiagnosticsMonitorAddressEnvKey, serverName } },
114
+ + environment: new Dictionary<string,string> { { Utils.DiagnosticPortsEnvKey, $"{serverName},connect,suspend" } },
115
+ duringExecution: async (pid) =>
116
+ {
117
+ Stream stream = await server.AcceptAsync();
118
+ @@ -271,7 +271,7 @@ public static async Task<bool> TEST_DisabledCommandsError()
119
+ using var memoryStream3 = new MemoryStream();
120
+ Task<bool> subprocessTask = Utils.RunSubprocess(
121
+ currentAssembly: Assembly.GetExecutingAssembly(),
122
+ - environment: new Dictionary<string,string> { { Utils.DiagnosticsMonitorAddressEnvKey, serverName } },
123
+ + environment: new Dictionary<string,string> { { Utils.DiagnosticPortsEnvKey, $"{serverName},connect,suspend" } },
124
+ duringExecution: async (pid) =>
125
+ {
126
+ Stream stream = await server.AcceptAsync();
127
+ diff --git a/src/tests/tracing/eventpipe/reverse/reverse.cs b/src/tests/tracing/eventpipe/reverse/reverse.cs
128
+ index 05436e574d6436..6ce09ea82b81b7 100644
129
+ --- a/src/tests/tracing/eventpipe/reverse/reverse.cs
130
+ +++ b/src/tests/tracing/eventpipe/reverse/reverse.cs
131
+ @@ -28,8 +28,7 @@ public static async Task<bool> TEST_RuntimeIsResilientToServerClosing()
132
+ currentAssembly: Assembly.GetExecutingAssembly(),
133
+ environment: new Dictionary<string,string>
134
+ {
135
+ - { Utils.DiagnosticsMonitorAddressEnvKey, serverName },
136
+ - { Utils.DiagnosticsMonitorPauseOnStartEnvKey, "0" }
137
+ + { Utils.DiagnosticPortsEnvKey, $"{serverName},connect,nosuspend" }
138
+ },
139
+ duringExecution: async (_) =>
140
+ {
141
+ @@ -59,8 +58,7 @@ public static async Task<bool> TEST_RuntimeConnectsToExistingServer()
142
+ currentAssembly: Assembly.GetExecutingAssembly(),
143
+ environment: new Dictionary<string,string>
144
+ {
145
+ - { Utils.DiagnosticsMonitorAddressEnvKey, serverName },
146
+ - { Utils.DiagnosticsMonitorPauseOnStartEnvKey, "0" }
147
+ + { Utils.DiagnosticPortsEnvKey, $"{serverName},connect,nosuspend" }
148
+ },
149
+ duringExecution: async (_) =>
150
+ {
151
+ @@ -85,8 +83,7 @@ public static async Task<bool> TEST_CanConnectServerAndClientAtSameTime()
152
+ currentAssembly: Assembly.GetExecutingAssembly(),
153
+ environment: new Dictionary<string,string>
154
+ {
155
+ - { Utils.DiagnosticsMonitorAddressEnvKey, serverName },
156
+ - { Utils.DiagnosticsMonitorPauseOnStartEnvKey, "0" }
157
+ + { Utils.DiagnosticPortsEnvKey, $"{serverName},connect,nosuspend" }
158
+ },
159
+ duringExecution: async (int pid) =>
160
+ {
161
+ @@ -139,8 +136,7 @@ public static async Task<bool> TEST_ServerWorksIfClientDoesntAccept()
162
+ currentAssembly: Assembly.GetExecutingAssembly(),
163
+ environment: new Dictionary<string,string>
164
+ {
165
+ - { Utils.DiagnosticsMonitorAddressEnvKey, serverName },
166
+ - { Utils.DiagnosticsMonitorPauseOnStartEnvKey, "0" }
167
+ + { Utils.DiagnosticPortsEnvKey, $"{serverName},connect,nosuspend" }
168
+ },
169
+ duringExecution: async (int pid) =>
170
+ {
171
+ @@ -181,8 +177,7 @@ public static async Task<bool> TEST_ServerIsResilientToNoBufferAgent()
172
+ currentAssembly: Assembly.GetExecutingAssembly(),
173
+ environment: new Dictionary<string,string>
174
+ {
175
+ - { Utils.DiagnosticsMonitorAddressEnvKey, serverName },
176
+ - { Utils.DiagnosticsMonitorPauseOnStartEnvKey, "0" }
177
+ + { Utils.DiagnosticPortsEnvKey, $"{serverName},connect,nosuspend" }
178
+ },
179
+ duringExecution: async (int pid) =>
180
+ {
181
+ @@ -220,8 +215,7 @@ public static async Task<bool> TEST_StandardConnectionStillWorksIfReverseConnect
182
+ currentAssembly: Assembly.GetExecutingAssembly(),
183
+ environment: new Dictionary<string,string>
184
+ {
185
+ - { Utils.DiagnosticsMonitorAddressEnvKey, serverName },
186
+ - { Utils.DiagnosticsMonitorPauseOnStartEnvKey, "0" }
187
+ + { Utils.DiagnosticPortsEnvKey, $"{serverName},connect,nosuspend" }
188
+ },
189
+ duringExecution: async (int pid) =>
190
+ {
191
+ diff --git a/src/tests/tracing/eventpipe/reverseouter/reverseouter.cs b/src/tests/tracing/eventpipe/reverseouter/reverseouter.cs
192
+ index ff01fbc0f449f1..6d3c0e4657cd84 100644
193
+ --- a/src/tests/tracing/eventpipe/reverseouter/reverseouter.cs
194
+ +++ b/src/tests/tracing/eventpipe/reverseouter/reverseouter.cs
195
+ @@ -28,8 +28,7 @@ public static async Task<bool> TEST_ReverseConnectionCanRecycleWhileTracing()
196
+ currentAssembly: Assembly.GetExecutingAssembly(),
197
+ environment: new Dictionary<string,string>
198
+ {
199
+ - { Utils.DiagnosticsMonitorAddressEnvKey, serverName },
200
+ - { Utils.DiagnosticsMonitorPauseOnStartEnvKey, "0" }
201
+ + { Utils.DiagnosticPortsEnvKey, $"{serverName},connect,nosuspend" }
202
+ },
203
+ duringExecution: async (int pid) =>
204
+ {
data/raw_sample/diffs/0001a6da1bc38074bea56262468e0171b521fe56.diff ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/CastHelpers.cs b/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/CastHelpers.cs
2
+ index b10ec23495b98d..6e89f50a1ea294 100644
3
+ --- a/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/CastHelpers.cs
4
+ +++ b/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/CastHelpers.cs
5
+ @@ -24,11 +24,26 @@ internal static void ThrowInvalidCastException(object fromType, void* toTypeHnd)
6
+ throw null!; // Provide hint to the inliner that this method does not return
7
+ }
8
+
9
+ - [MethodImpl(MethodImplOptions.InternalCall)]
10
+ - private static extern object IsInstanceOfAny_NoCacheLookup(void* toTypeHnd, object obj);
11
+ + [LibraryImport(RuntimeHelpers.QCall)]
12
+ + [return: MarshalAs(UnmanagedType.Bool)]
13
+ + private static partial bool IsInstanceOf_NoCacheLookup(void *toTypeHnd, [MarshalAs(UnmanagedType.Bool)] bool throwCastException, ObjectHandleOnStack obj);
14
+
15
+ - [MethodImpl(MethodImplOptions.InternalCall)]
16
+ - private static extern object ChkCastAny_NoCacheLookup(void* toTypeHnd, object obj);
17
+ + [MethodImpl(MethodImplOptions.NoInlining)]
18
+ + private static object? IsInstanceOfAny_NoCacheLookup(void* toTypeHnd, object obj)
19
+ + {
20
+ + if (IsInstanceOf_NoCacheLookup(toTypeHnd, false, ObjectHandleOnStack.Create(ref obj)))
21
+ + {
22
+ + return obj;
23
+ + }
24
+ + return null;
25
+ + }
26
+ +
27
+ + [MethodImpl(MethodImplOptions.NoInlining)]
28
+ + private static object ChkCastAny_NoCacheLookup(void* toTypeHnd, object obj)
29
+ + {
30
+ + IsInstanceOf_NoCacheLookup(toTypeHnd, true, ObjectHandleOnStack.Create(ref obj));
31
+ + return obj;
32
+ + }
33
+
34
+ [MethodImpl(MethodImplOptions.InternalCall)]
35
+ private static extern void WriteBarrier(ref object? dst, object? obj);
36
+ @@ -464,13 +479,13 @@ private static void StelemRef_Helper_NoCacheLookup(ref object? element, void* el
37
+ {
38
+ Debug.Assert(obj != null);
39
+
40
+ - obj = IsInstanceOfAny_NoCacheLookup(elementType, obj);
41
+ - if (obj == null)
42
+ + object? obj2 = IsInstanceOfAny_NoCacheLookup(elementType, obj);
43
+ + if (obj2 == null)
44
+ {
45
+ ThrowArrayMismatchException();
46
+ }
47
+
48
+ - WriteBarrier(ref element, obj);
49
+ + WriteBarrier(ref element, obj2);
50
+ }
51
+
52
+ [DebuggerHidden]
53
+ @@ -496,8 +511,7 @@ private static unsafe void ArrayTypeCheck_Helper(object obj, void* elementType)
54
+ {
55
+ Debug.Assert(obj != null);
56
+
57
+ - obj = IsInstanceOfAny_NoCacheLookup(elementType, obj);
58
+ - if (obj == null)
59
+ + if (IsInstanceOfAny_NoCacheLookup(elementType, obj) == null)
60
+ {
61
+ ThrowArrayMismatchException();
62
+ }
63
+ diff --git a/src/coreclr/vm/JitQCallHelpers.h b/src/coreclr/vm/JitQCallHelpers.h
64
+ index ff3bfa97981f3e..f229bff39f9fca 100644
65
+ --- a/src/coreclr/vm/JitQCallHelpers.h
66
+ +++ b/src/coreclr/vm/JitQCallHelpers.h
67
+ @@ -24,5 +24,6 @@ extern "C" void QCALLTYPE InitClassHelper(MethodTable* pMT);
68
+ extern "C" void QCALLTYPE ThrowInvalidCastException(CORINFO_CLASS_HANDLE pTargetType, CORINFO_CLASS_HANDLE pSourceType);
69
+ extern "C" void QCALLTYPE GetThreadStaticsByMethodTable(QCall::ByteRefOnStack refHandle, MethodTable* pMT, bool gcStatic);
70
+ extern "C" void QCALLTYPE GetThreadStaticsByIndex(QCall::ByteRefOnStack refHandle, uint32_t staticBlockIndex, bool gcStatic);
71
+ +extern "C" BOOL QCALLTYPE IsInstanceOf_NoCacheLookup(CORINFO_CLASS_HANDLE type, BOOL throwCastException, QCall::ObjectHandleOnStack objOnStack);
72
+
73
+ #endif //_JITQCALLHELPERS_H
74
+ diff --git a/src/coreclr/vm/ecalllist.h b/src/coreclr/vm/ecalllist.h
75
+ index 5aff25d5caa72c..a934364e77591c 100644
76
+ --- a/src/coreclr/vm/ecalllist.h
77
+ +++ b/src/coreclr/vm/ecalllist.h
78
+ @@ -256,8 +256,6 @@ FCFuncStart(gThreadPoolFuncs)
79
+ FCFuncEnd()
80
+
81
+ FCFuncStart(gCastHelpers)
82
+ - FCFuncElement("IsInstanceOfAny_NoCacheLookup", ::IsInstanceOfAny_NoCacheLookup)
83
+ - FCFuncElement("ChkCastAny_NoCacheLookup", ::ChkCastAny_NoCacheLookup)
84
+ FCFuncElement("WriteBarrier", ::WriteBarrier_Helper)
85
+ FCFuncEnd()
86
+
87
+ diff --git a/src/coreclr/vm/jithelpers.cpp b/src/coreclr/vm/jithelpers.cpp
88
+ index 197c2035a847a5..780323637cf4bd 100644
89
+ --- a/src/coreclr/vm/jithelpers.cpp
90
+ +++ b/src/coreclr/vm/jithelpers.cpp
91
+ @@ -781,51 +781,22 @@ BOOL ObjIsInstanceOf(Object* pObject, TypeHandle toTypeHnd, BOOL throwCastExcept
92
+ return ObjIsInstanceOfCore(pObject, toTypeHnd, throwCastException);
93
+ }
94
+
95
+ -HCIMPL2(Object*, ChkCastAny_NoCacheLookup, CORINFO_CLASS_HANDLE type, Object* obj)
96
+ +extern "C" BOOL QCALLTYPE IsInstanceOf_NoCacheLookup(CORINFO_CLASS_HANDLE type, BOOL throwCastException, QCall::ObjectHandleOnStack objOnStack)
97
+ {
98
+ - FCALL_CONTRACT;
99
+ -
100
+ - // This case should be handled by frameless helper
101
+ - _ASSERTE(obj != NULL);
102
+ -
103
+ - OBJECTREF oref = ObjectToOBJECTREF(obj);
104
+ - VALIDATEOBJECTREF(oref);
105
+ -
106
+ - TypeHandle clsHnd(type);
107
+ -
108
+ - HELPER_METHOD_FRAME_BEGIN_RET_1(oref);
109
+ - if (!ObjIsInstanceOfCore(OBJECTREFToObject(oref), clsHnd, TRUE))
110
+ - {
111
+ - UNREACHABLE(); //ObjIsInstanceOf will throw if cast can't be done
112
+ - }
113
+ - HELPER_METHOD_POLL();
114
+ - HELPER_METHOD_FRAME_END();
115
+ -
116
+ - return OBJECTREFToObject(oref);
117
+ -}
118
+ -HCIMPLEND
119
+ -
120
+ -HCIMPL2(Object*, IsInstanceOfAny_NoCacheLookup, CORINFO_CLASS_HANDLE type, Object* obj)
121
+ -{
122
+ - FCALL_CONTRACT;
123
+ + QCALL_CONTRACT;
124
+ + BOOL result = FALSE;
125
+
126
+ - // This case should be handled by frameless helper
127
+ - _ASSERTE(obj != NULL);
128
+ + BEGIN_QCALL;
129
+
130
+ - OBJECTREF oref = ObjectToOBJECTREF(obj);
131
+ - VALIDATEOBJECTREF(oref);
132
+ + GCX_COOP();
133
+
134
+ TypeHandle clsHnd(type);
135
+ + result = ObjIsInstanceOfCore(OBJECTREFToObject(objOnStack.Get()), clsHnd, throwCastException);
136
+
137
+ - HELPER_METHOD_FRAME_BEGIN_RET_1(oref);
138
+ - if (!ObjIsInstanceOfCore(OBJECTREFToObject(oref), clsHnd))
139
+ - oref = NULL;
140
+ - HELPER_METHOD_POLL();
141
+ - HELPER_METHOD_FRAME_END();
142
+ + END_QCALL;
143
+
144
+ - return OBJECTREFToObject(oref);
145
+ + return result;
146
+ }
147
+ -HCIMPLEND
148
+
149
+ //========================================================================
150
+ //
151
+ diff --git a/src/coreclr/vm/jitinterface.h b/src/coreclr/vm/jitinterface.h
152
+ index 0de84367ab3c70..a99604cd66716c 100644
153
+ --- a/src/coreclr/vm/jitinterface.h
154
+ +++ b/src/coreclr/vm/jitinterface.h
155
+ @@ -236,10 +236,7 @@ extern "C" FCDECL2(VOID, JIT_CheckedWriteBarrier, Object **dst, Object *ref);
156
+ extern "C" FCDECL2(VOID, JIT_WriteBarrier, Object **dst, Object *ref);
157
+ extern "C" FCDECL2(VOID, JIT_WriteBarrierEnsureNonHeapTarget, Object **dst, Object *ref);
158
+
159
+ -extern "C" FCDECL2(Object*, ChkCastAny_NoCacheLookup, CORINFO_CLASS_HANDLE type, Object* obj);
160
+ -extern "C" FCDECL2(Object*, IsInstanceOfAny_NoCacheLookup, CORINFO_CLASS_HANDLE type, Object* obj);
161
+ -
162
+ -// ARM64 JIT_WriteBarrier uses speciall ABI and thus is not callable directly
163
+ +// ARM64 JIT_WriteBarrier uses special ABI and thus is not callable directly
164
+ // Copied write barriers must be called at a different location
165
+ extern "C" FCDECL2(VOID, JIT_WriteBarrier_Callable, Object **dst, Object *ref);
166
+
167
+ diff --git a/src/coreclr/vm/qcallentrypoints.cpp b/src/coreclr/vm/qcallentrypoints.cpp
168
+ index 32dc4c7ed27853..c41ab9e70bdc62 100644
169
+ --- a/src/coreclr/vm/qcallentrypoints.cpp
170
+ +++ b/src/coreclr/vm/qcallentrypoints.cpp
171
+ @@ -515,6 +515,7 @@ static const Entry s_QCall[] =
172
+ DllImportEntry(GetThreadStaticsByIndex)
173
+ DllImportEntry(GenericHandleWorker)
174
+ DllImportEntry(ThrowInvalidCastException)
175
+ + DllImportEntry(IsInstanceOf_NoCacheLookup)
176
+ };
177
+
178
+ const void* QCallResolveDllImport(const char* name)
data/raw_sample/diffs/0001fcfea66c03e3adba44bf8ead1d1440ad5b7a.diff ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/coreclr/src/zap/zapinfo.cpp b/src/coreclr/src/zap/zapinfo.cpp
2
+ index 48d30834b8e241..3b229470e913eb 100644
3
+ --- a/src/coreclr/src/zap/zapinfo.cpp
4
+ +++ b/src/coreclr/src/zap/zapinfo.cpp
5
+ @@ -2147,13 +2147,15 @@ DWORD FilterNamedIntrinsicMethodAttribs(ZapInfo* pZapInfo, DWORD attribs, CORINF
6
+ // is because they often change the code they emit based on what ISAs are supported by the compiler,
7
+ // but we don't know what the target machine will support.
8
+ //
9
+ - // Additionally, we make sure none of the hardware intrinsic method bodies get pregenerated in crossgen
10
+ + // Additionally, we make sure none of the hardware intrinsic method bodies (except ARM64) get pregenerated in crossgen
11
+ // (see ZapInfo::CompileMethod) but get JITted instead. The JITted method will have the correct
12
+ // answer for the CPU the code is running on.
13
+ -#if defined(TARGET_ARM64)
14
+ +
15
+ + // For Arm64, AdvSimd/ArmBase is the baseline that is suported and hence we do pregenerate the method bodies
16
+ + // of ARM4 harware intrinsic.
17
+ fTreatAsRegularMethodCall = (fIsGetIsSupportedMethod && fIsPlatformHWIntrinsic);
18
+ -#else
19
+ - fTreatAsRegularMethodCall = (fIsGetIsSupportedMethod && fIsPlatformHWIntrinsic) || (!fIsPlatformHWIntrinsic && fIsHWIntrinsic);
20
+ +#if !defined(TARGET_ARM64)
21
+ + fTreatAsRegularMethodCall |= (!fIsPlatformHWIntrinsic && fIsHWIntrinsic);
22
+ #endif
23
+
24
+
data/raw_sample/diffs/00022b5da3c98c9d7693a93fe586034febd46c65.diff ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/eng/testing/tests.mobile.targets b/eng/testing/tests.mobile.targets
2
+ index cd006df4bd1d61..3d1535e026c9bc 100644
3
+ --- a/eng/testing/tests.mobile.targets
4
+ +++ b/eng/testing/tests.mobile.targets
5
+ @@ -20,6 +20,11 @@
6
+ <DebuggerSupport>false</DebuggerSupport>
7
+ </PropertyGroup>
8
+
9
+ + <PropertyGroup Condition="'$(TargetOS)' == 'Browser' and '$(EnableAggressiveTrimming)' == 'true'">
10
+ + <PublishTrimmed>true</PublishTrimmed>
11
+ + <TrimMode>link</TrimMode>
12
+ + </PropertyGroup>
13
+ +
14
+ <PropertyGroup Condition="'$(TargetOS)' == 'Android'">
15
+ <RunScriptCommand>$HARNESS_RUNNER android test --instrumentation="net.dot.MonoRunner" --package-name="net.dot.$(AssemblyName)" --app=$EXECUTION_DIR/bin/$(TestProjectName).apk --output-directory=$XHARNESS_OUT -v --</RunScriptCommand>
16
+ </PropertyGroup>
17
+ diff --git a/eng/testing/tests.props b/eng/testing/tests.props
18
+ index b84e791ba6c99e..bf54e899d4d11e 100644
19
+ --- a/eng/testing/tests.props
20
+ +++ b/eng/testing/tests.props
21
+ @@ -30,10 +30,6 @@
22
+ <RuntimeIdentifier>$(PackageRID)</RuntimeIdentifier>
23
+ <SelfContained>true</SelfContained>
24
+ </PropertyGroup>
25
+ - <PropertyGroup Condition="'$(TargetOS)' == 'Browser' and '$(EnableAggressiveTrimming)' == 'true'">
26
+ - <PublishTrimmed>true</PublishTrimmed>
27
+ - <TrimMode>link</TrimMode>
28
+ - </PropertyGroup>
29
+
30
+ <!-- Provide runtime options to Mono (interpreter, aot, debugging, etc) -->
31
+ <ItemGroup Condition="'$(MonoEnvOptions)' != '' and '$(TargetsMobile)' != 'true'">
data/raw_sample/diffs/000230aa9db13b77781b7c7b33fa8a92a39ee58e.diff ADDED
@@ -0,0 +1,229 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterLib.cs b/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterLib.cs
2
+ index bdd47b922779d8..567a8bf433f1f7 100644
3
+ --- a/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterLib.cs
4
+ +++ b/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterLib.cs
5
+ @@ -45,12 +45,12 @@ internal sealed class PerformanceCounterLib
6
+ private const string LanguageKeyword = "language";
7
+ private const string DllName = "netfxperf.dll";
8
+
9
+ - private const int EnglishLCID = 0x009;
10
+ -
11
+ private static volatile string s_computerName;
12
+ private static volatile string s_iniFilePath;
13
+ private static volatile string s_symbolFilePath;
14
+
15
+ + private static CultureInfo s_englishCulture;
16
+ +
17
+ private PerformanceMonitor _performanceMonitor;
18
+ private readonly string _machineName;
19
+ private readonly string _perfLcid;
20
+ @@ -79,6 +79,25 @@ private static object InternalSyncObject
21
+ }
22
+ }
23
+
24
+ + private static CultureInfo EnglishCulture
25
+ + {
26
+ + get
27
+ + {
28
+ + if (s_englishCulture is null)
29
+ + {
30
+ + try
31
+ + {
32
+ + s_englishCulture = CultureInfo.GetCultureInfo("en");
33
+ + }
34
+ + catch
35
+ + {
36
+ + s_englishCulture = CultureInfo.InvariantCulture;
37
+ + }
38
+ + }
39
+ + return s_englishCulture;
40
+ + }
41
+ + }
42
+ +
43
+ internal PerformanceCounterLib(string machineName, string lcid)
44
+ {
45
+ _machineName = machineName;
46
+ @@ -277,11 +296,11 @@ private static string SymbolFilePath
47
+
48
+ internal static bool CategoryExists(string machine, string category)
49
+ {
50
+ - PerformanceCounterLib library = GetPerformanceCounterLib(machine, new CultureInfo(EnglishLCID));
51
+ + PerformanceCounterLib library = GetPerformanceCounterLib(machine, EnglishCulture);
52
+ if (library.CategoryExists(category))
53
+ return true;
54
+
55
+ - if (CultureInfo.CurrentCulture.Parent.LCID != EnglishLCID)
56
+ + if (CultureInfo.CurrentCulture.Parent.Name != EnglishCulture.Name)
57
+ {
58
+ CultureInfo culture = CultureInfo.CurrentCulture;
59
+ while (culture != CultureInfo.InvariantCulture)
60
+ @@ -349,11 +368,11 @@ internal void Close()
61
+
62
+ internal static bool CounterExists(string machine, string category, string counter)
63
+ {
64
+ - PerformanceCounterLib library = GetPerformanceCounterLib(machine, new CultureInfo(EnglishLCID));
65
+ + PerformanceCounterLib library = GetPerformanceCounterLib(machine, EnglishCulture);
66
+ bool categoryExists = false;
67
+ bool counterExists = library.CounterExists(category, counter, ref categoryExists);
68
+
69
+ - if (!categoryExists && CultureInfo.CurrentCulture.Parent.LCID != EnglishLCID)
70
+ + if (!categoryExists && CultureInfo.CurrentCulture.Parent.Name != EnglishCulture.Name)
71
+ {
72
+ CultureInfo culture = CultureInfo.CurrentCulture;
73
+ while (culture != CultureInfo.InvariantCulture)
74
+ @@ -753,7 +772,7 @@ internal static string[] GetCategories(string machineName)
75
+ culture = culture.Parent;
76
+ }
77
+
78
+ - library = GetPerformanceCounterLib(machineName, new CultureInfo(EnglishLCID));
79
+ + library = GetPerformanceCounterLib(machineName, EnglishCulture);
80
+ return library.GetCategories();
81
+ }
82
+
83
+ @@ -772,7 +791,7 @@ internal static string GetCategoryHelp(string machine, string category)
84
+
85
+ //First check the current culture for the category. This will allow
86
+ //PerformanceCounterCategory.CategoryHelp to return localized strings.
87
+ - if (CultureInfo.CurrentCulture.Parent.LCID != EnglishLCID)
88
+ + if (CultureInfo.CurrentCulture.Parent.Name != EnglishCulture.Name)
89
+ {
90
+ CultureInfo culture = CultureInfo.CurrentCulture;
91
+
92
+ @@ -788,7 +807,7 @@ internal static string GetCategoryHelp(string machine, string category)
93
+
94
+ //We did not find the category walking up the culture hierarchy. Try looking
95
+ // for the category in the default culture English.
96
+ - library = GetPerformanceCounterLib(machine, new CultureInfo(EnglishLCID));
97
+ + library = GetPerformanceCounterLib(machine, EnglishCulture);
98
+ help = library.GetCategoryHelp(category);
99
+
100
+ if (help == null)
101
+ @@ -808,9 +827,9 @@ private string GetCategoryHelp(string category)
102
+
103
+ internal static CategorySample GetCategorySample(string machine, string category)
104
+ {
105
+ - PerformanceCounterLib library = GetPerformanceCounterLib(machine, new CultureInfo(EnglishLCID));
106
+ + PerformanceCounterLib library = GetPerformanceCounterLib(machine, EnglishCulture);
107
+ CategorySample sample = library.GetCategorySample(category);
108
+ - if (sample == null && CultureInfo.CurrentCulture.Parent.LCID != EnglishLCID)
109
+ + if (sample == null && CultureInfo.CurrentCulture.Parent.Name != EnglishCulture.Name)
110
+ {
111
+ CultureInfo culture = CultureInfo.CurrentCulture;
112
+ while (culture != CultureInfo.InvariantCulture)
113
+ @@ -845,11 +864,11 @@ private CategorySample GetCategorySample(string category)
114
+
115
+ internal static string[] GetCounters(string machine, string category)
116
+ {
117
+ - PerformanceCounterLib library = GetPerformanceCounterLib(machine, new CultureInfo(EnglishLCID));
118
+ + PerformanceCounterLib library = GetPerformanceCounterLib(machine, EnglishCulture);
119
+ bool categoryExists = false;
120
+ string[] counters = library.GetCounters(category, ref categoryExists);
121
+
122
+ - if (!categoryExists && CultureInfo.CurrentCulture.Parent.LCID != EnglishLCID)
123
+ + if (!categoryExists && CultureInfo.CurrentCulture.Parent.Name != EnglishCulture.Name)
124
+ {
125
+ CultureInfo culture = CultureInfo.CurrentCulture;
126
+ while (culture != CultureInfo.InvariantCulture)
127
+ @@ -910,7 +929,7 @@ internal static string GetCounterHelp(string machine, string category, string co
128
+
129
+ //First check the current culture for the counter. This will allow
130
+ //PerformanceCounter.CounterHelp to return localized strings.
131
+ - if (CultureInfo.CurrentCulture.Parent.LCID != EnglishLCID)
132
+ + if (CultureInfo.CurrentCulture.Parent.Name != EnglishCulture.Name)
133
+ {
134
+ CultureInfo culture = CultureInfo.CurrentCulture;
135
+ while (culture != CultureInfo.InvariantCulture)
136
+ @@ -925,7 +944,7 @@ internal static string GetCounterHelp(string machine, string category, string co
137
+
138
+ //We did not find the counter walking up the culture hierarchy. Try looking
139
+ // for the counter in the default culture English.
140
+ - library = GetPerformanceCounterLib(machine, new CultureInfo(EnglishLCID));
141
+ + library = GetPerformanceCounterLib(machine, EnglishCulture);
142
+ help = library.GetCounterHelp(category, counter, ref categoryExists);
143
+
144
+ if (!categoryExists)
145
+ @@ -990,7 +1009,8 @@ private static string[] GetLanguageIds()
146
+
147
+ internal static PerformanceCounterLib GetPerformanceCounterLib(string machineName, CultureInfo culture)
148
+ {
149
+ - string lcidString = culture.LCID.ToString("X3", CultureInfo.InvariantCulture);
150
+ + // EnglishCulture.LCID == 9 will be false only if running with Globalization Invariant Mode. Use "009" at that time as default English language identifier.
151
+ + string lcidString = EnglishCulture.LCID == 9 ? culture.LCID.ToString("X3", CultureInfo.InvariantCulture) : "009";
152
+
153
+ machineName = (machineName == "." ? ComputerName : machineName).ToLowerInvariant();
154
+
155
+ @@ -1135,11 +1155,11 @@ private Hashtable GetStringTable(bool isHelp)
156
+
157
+ internal static bool IsCustomCategory(string machine, string category)
158
+ {
159
+ - PerformanceCounterLib library = GetPerformanceCounterLib(machine, new CultureInfo(EnglishLCID));
160
+ + PerformanceCounterLib library = GetPerformanceCounterLib(machine, EnglishCulture);
161
+ if (library.IsCustomCategory(category))
162
+ return true;
163
+
164
+ - if (CultureInfo.CurrentCulture.Parent.LCID != EnglishLCID)
165
+ + if (CultureInfo.CurrentCulture.Parent.Name != EnglishCulture.Name)
166
+ {
167
+ CultureInfo culture = CultureInfo.CurrentCulture;
168
+ while (culture != CultureInfo.InvariantCulture)
169
+ @@ -1174,10 +1194,10 @@ internal static PerformanceCounterCategoryType GetCategoryType(string machine, s
170
+ {
171
+ PerformanceCounterCategoryType categoryType = PerformanceCounterCategoryType.Unknown;
172
+
173
+ - PerformanceCounterLib library = GetPerformanceCounterLib(machine, new CultureInfo(EnglishLCID));
174
+ + PerformanceCounterLib library = GetPerformanceCounterLib(machine, EnglishCulture);
175
+ if (!library.FindCustomCategory(category, out categoryType))
176
+ {
177
+ - if (CultureInfo.CurrentCulture.Parent.LCID != EnglishLCID)
178
+ + if (CultureInfo.CurrentCulture.Parent.Name != EnglishCulture.Name)
179
+ {
180
+ CultureInfo culture = CultureInfo.CurrentCulture;
181
+ while (culture != CultureInfo.InvariantCulture)
182
+ diff --git a/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterTests.cs b/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterTests.cs
183
+ index bfaf5fba64b3de..c8df93e8c267b4 100644
184
+ --- a/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterTests.cs
185
+ +++ b/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterTests.cs
186
+ @@ -2,8 +2,10 @@
187
+ // The .NET Foundation licenses this file to you under the MIT license.
188
+
189
+ using System;
190
+ +using System.Globalization;
191
+ using System.Collections;
192
+ using System.Collections.Specialized;
193
+ +using Microsoft.DotNet.RemoteExecutor;
194
+ using Xunit;
195
+
196
+ namespace System.Diagnostics.Tests
197
+ @@ -287,6 +289,32 @@ public static void PerformanceCounter_NextSample_MultiInstance()
198
+ }
199
+ }
200
+
201
+ + private static bool CanRunInInvariantMode => RemoteExecutor.IsSupported && !PlatformDetection.IsNetFramework;
202
+ +
203
+ + [ConditionalTheory(nameof(CanRunInInvariantMode))]
204
+ + [PlatformSpecific(TestPlatforms.Windows)]
205
+ + [InlineData(true)]
206
+ + [InlineData(false)]
207
+ + public static void RunWithGlobalizationInvariantModeTest(bool predefinedCultures)
208
+ + {
209
+ + ProcessStartInfo psi = new ProcessStartInfo() { UseShellExecute = false };
210
+ + psi.Environment.Add("DOTNET_SYSTEM_GLOBALIZATION_INVARIANT", "1");
211
+ + psi.Environment.Add("DOTNET_SYSTEM_GLOBALIZATION_PREDEFINED_CULTURES_ONLY", predefinedCultures ? "1" : "0");
212
+ + RemoteExecutor.Invoke(() =>
213
+ + {
214
+ + // Ensure we are running inside the Globalization invariant mode.
215
+ + Assert.Equal("", CultureInfo.CurrentCulture.Name);
216
+ +
217
+ + // This test ensure creating PerformanceCounter object while we are running with Globalization Invariant Mode.
218
+ + // PerformanceCounter used to create cultures using LCID's which fail in Globalization Invariant Mode.
219
+ + // This test ensure no failure should be encountered in this case.
220
+ + using (PerformanceCounter counterSample = new PerformanceCounter("Processor", "Interrupts/sec", "0", "."))
221
+ + {
222
+ + Assert.Equal("Processor", counterSample.CategoryName);
223
+ + }
224
+ + }, new RemoteInvokeOptions { StartInfo = psi}).Dispose();
225
+ + }
226
+ +
227
+ public static PerformanceCounter CreateCounterWithCategory(string name, bool readOnly, PerformanceCounterCategoryType categoryType )
228
+ {
229
+ var category = Helpers.CreateCategory(name, categoryType);
data/raw_sample/diffs/0002740ace8e48ec69914eef4db7463c083ec1a6.diff ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/coreclr/src/vm/threadsuspend.cpp b/src/coreclr/src/vm/threadsuspend.cpp
2
+ index d17835863ac589..dbb8cb8ee4ad13 100644
3
+ --- a/src/coreclr/src/vm/threadsuspend.cpp
4
+ +++ b/src/coreclr/src/vm/threadsuspend.cpp
5
+ @@ -2187,7 +2187,7 @@ CONTEXT* AllocateOSContextHelper(BYTE** contextBuffer)
6
+ pfnInitializeContext2 = (PINITIALIZECONTEXT2)GetProcAddress(hm, "InitializeContext2");
7
+ }
8
+
9
+ - // Determine if the processor supports AVX so we could
10
+ + // Determine if the processor supports AVX so we could
11
+ // retrieve extended registers
12
+ DWORD64 FeatureMask = GetEnabledXStateFeatures();
13
+ if ((FeatureMask & XSTATE_MASK_AVX) != 0)
14
+ @@ -2203,7 +2203,14 @@ CONTEXT* AllocateOSContextHelper(BYTE** contextBuffer)
15
+ pfnInitializeContext2(NULL, context, NULL, &contextSize, xStateCompactionMask) :
16
+ InitializeContext(NULL, context, NULL, &contextSize);
17
+
18
+ - _ASSERTE(!success && GetLastError() == ERROR_INSUFFICIENT_BUFFER);
19
+ + // Spec mentions that we may get a different error (it was observed on Windows7).
20
+ + // In such case the contextSize is undefined.
21
+ + if (success || GetLastError() != ERROR_INSUFFICIENT_BUFFER)
22
+ + {
23
+ + STRESS_LOG2(LF_SYNC, LL_INFO1000, "AllocateOSContextHelper: Unexpected result from InitializeContext (success: %d, error: %d).\n",
24
+ + success, GetLastError());
25
+ + return NULL;
26
+ + }
27
+
28
+ // So now allocate a buffer of that size and call InitializeContext again
29
+ BYTE* buffer = new (nothrow)BYTE[contextSize];
30
+ @@ -2227,7 +2234,7 @@ CONTEXT* AllocateOSContextHelper(BYTE** contextBuffer)
31
+
32
+ *contextBuffer = buffer;
33
+
34
+ -#else
35
+ +#else
36
+ pOSContext = new (nothrow) CONTEXT;
37
+ pOSContext->ContextFlags = CONTEXT_COMPLETE;
38
+ *contextBuffer = NULL;
39
+ @@ -3170,9 +3177,15 @@ BOOL Thread::RedirectThreadAtHandledJITCase(PFN_REDIRECTTARGET pTgt)
40
+ if (!pCtx)
41
+ {
42
+ pCtx = m_pSavedRedirectContext = ThreadStore::GrabOSContext(&m_pOSContextBuffer);
43
+ - _ASSERTE(GetSavedRedirectContext() != NULL);
44
+ }
45
+
46
+ + // We may not have a preallocated context. Could be short on memory when we tried to preallocate.
47
+ + // We cannot allocate here since we have a thread stopped in a random place, possibly holding locks
48
+ + // that we would need while allocating.
49
+ + // Other ways and attempts at suspending may yet succeed, but this redirection cannot continue.
50
+ + if (!pCtx)
51
+ + return (FALSE);
52
+ +
53
+ //////////////////////////////////////
54
+ // Get and save the thread's context
55
+ BOOL bRes = true;
56
+ @@ -3182,9 +3195,9 @@ BOOL Thread::RedirectThreadAtHandledJITCase(PFN_REDIRECTTARGET pTgt)
57
+ #if defined(TARGET_X86) || defined(TARGET_AMD64)
58
+ // Scenarios like GC stress may indirectly disable XState features in the pCtx
59
+ // depending on the state at the time of GC stress interrupt.
60
+ - //
61
+ + //
62
+ // Make sure that AVX feature mask is set, if supported.
63
+ - //
64
+ + //
65
+ // This should not normally fail.
66
+ // The system silently ignores any feature specified in the FeatureMask
67
+ // which is not enabled on the processor.
data/raw_sample/diffs/000286f7b0da4fb1d1ca66f6f2fe4543e8c959e3.diff ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/coreclr/jit/lsraxarch.cpp b/src/coreclr/jit/lsraxarch.cpp
2
+ index faa0b8e8d4009c..ecdb69ed971901 100644
3
+ --- a/src/coreclr/jit/lsraxarch.cpp
4
+ +++ b/src/coreclr/jit/lsraxarch.cpp
5
+ @@ -438,7 +438,7 @@ int LinearScan::BuildNode(GenTree* tree)
6
+ case GT_XAND:
7
+ if (!tree->IsUnusedValue())
8
+ {
9
+ - // if value is unused, we'll emit a cmpxchg-loop idiom (requires RAX)
10
+ + // if tree's value is used, we'll emit a cmpxchg-loop idiom (requires RAX)
11
+ buildInternalIntRegisterDefForNode(tree, availableIntRegs & ~RBM_RAX);
12
+ BuildUse(tree->gtGetOp1(), availableIntRegs & ~RBM_RAX);
13
+ BuildUse(tree->gtGetOp2(), availableIntRegs & ~RBM_RAX);
data/raw_sample/diffs/0002c625a7bcb71aa7c5eecccd7b6d310155bae9.diff ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/coreclr/tools/Common/Internal/Text/Utf8StringBuilder.cs b/src/coreclr/tools/Common/Internal/Text/Utf8StringBuilder.cs
2
+ index 88cb8c80994910..d5dfa7c0ba0ed1 100644
3
+ --- a/src/coreclr/tools/Common/Internal/Text/Utf8StringBuilder.cs
4
+ +++ b/src/coreclr/tools/Common/Internal/Text/Utf8StringBuilder.cs
5
+ @@ -16,6 +16,7 @@ public Utf8StringBuilder()
6
+ {
7
+ }
8
+
9
+ + public ReadOnlySpan<byte> UnderlyingArray => _buffer;
10
+ public int Length => _length;
11
+
12
+ public Utf8StringBuilder Clear()
data/raw_sample/diffs/0003313fc63699ca6458caea66add9d4ccf0336b.diff ADDED
@@ -0,0 +1,1112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/eng/pipelines/common/templates/runtimes/run-test-job.yml b/eng/pipelines/common/templates/runtimes/run-test-job.yml
2
+ index 1f41fae7575455..76452e320e54c8 100644
3
+ --- a/eng/pipelines/common/templates/runtimes/run-test-job.yml
4
+ +++ b/eng/pipelines/common/templates/runtimes/run-test-job.yml
5
+ @@ -64,9 +64,10 @@ jobs:
6
+ - ${{ if notIn(parameters.testGroup, 'innerloop', 'clrinterpreter') }}:
7
+ - '${{ parameters.runtimeFlavor }}_common_test_build_p1_AnyOS_AnyCPU_${{parameters.buildConfig }}'
8
+ - ${{ if ne(parameters.stagedBuild, true) }}:
9
+ - - ${{ if or( eq(parameters.runtimeVariant, 'minijit'), eq(parameters.runtimeVariant, 'monointerpreter')) }}:
10
+ + - ${{ if or( eq(parameters.runtimeVariant, 'minijit'), eq(parameters.runtimeVariant, 'monointerpreter'), eq(parameters.runtimeVariant, 'llvmaot'), eq(parameters.runtimeVariant, 'llvmfullaot')) }}:
11
+ # This is needed for creating a CORE_ROOT in the current design.
12
+ - ${{ format('coreclr_{0}_product_build_{1}{2}_{3}_{4}', '', parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }}
13
+ + - ${{ if or( eq(parameters.runtimeVariant, 'minijit'), eq(parameters.runtimeVariant, 'monointerpreter')) }} :
14
+ # minijit and mono interpreter runtimevariants do not require any special build of the runtime
15
+ - ${{ format('{0}_{1}_product_build_{2}{3}_{4}_{5}', parameters.runtimeFlavor, '', parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }}
16
+ - ${{ if not(or(eq(parameters.runtimeVariant, 'minijit'), eq(parameters.runtimeVariant, 'monointerpreter'))) }}:
17
+ diff --git a/eng/testing/tests.mobile.targets b/eng/testing/tests.mobile.targets
18
+ index d6a4d13e979e40..53f3274b9e45d0 100644
19
+ --- a/eng/testing/tests.mobile.targets
20
+ +++ b/eng/testing/tests.mobile.targets
21
+ @@ -213,6 +213,8 @@
22
+ </ItemGroup>
23
+ </Target>
24
+
25
+ + <Import Project="$(MSBuildThisFileDirectory)workloads-testing.targets" />
26
+ +
27
+ <Target Name="PublishTestAsSelfContained"
28
+ Condition="'$(IsCrossTargetingBuild)' != 'true'"
29
+ AfterTargets="Build"
30
+ diff --git a/src/libraries/workloads-testing.targets b/eng/testing/workloads-testing.targets
31
+ similarity index 92%
32
+ rename from src/libraries/workloads-testing.targets
33
+ rename to eng/testing/workloads-testing.targets
34
+ index 6a8fa5055bbbb3..712a29a717f5cf 100644
35
+ --- a/src/libraries/workloads-testing.targets
36
+ +++ b/eng/testing/workloads-testing.targets
37
+ @@ -1,4 +1,10 @@
38
+ <Project>
39
+ +
40
+ + <PropertyGroup Condition="'$(TestUsingWorkloads)' == 'true'">
41
+ + <!-- for non-ci builds, we install the sdk when tests are run -->
42
+ + <InstallWorkloadForTesting Condition="'$(ContinuousIntegrationBuild)' == 'true' and '$(ArchiveTests)' == 'true'">true</InstallWorkloadForTesting>
43
+ + </PropertyGroup>
44
+ +
45
+ <Target Name="ProvisionSdkForWorkloadTesting"
46
+ DependsOnTargets="_ProvisionSdkWithNoWorkload"
47
+ Condition="!Exists($(SdkWithNoWorkloadStampPath)) or !Exists($(SdkWithWorkloadStampPath))">
48
+ @@ -88,8 +94,10 @@
49
+ </ItemGroup>
50
+
51
+ <PropertyGroup>
52
+ + <_PackageVersion>$(PackageVersion)</_PackageVersion>
53
+ + <_PackageVersion Condition="'$(StabilizePackageVersion)' == 'true'">$(ProductVersion)</_PackageVersion>
54
+ <!-- Eg. Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.browser-wasm.6.0.0-dev.nupkg -->
55
+ - <_AOTCrossNuGetPath>$(LibrariesShippingPackagesDir)Microsoft.NETCore.App.Runtime.AOT.$(NETCoreSdkRuntimeIdentifier).Cross.$(RuntimeIdentifier).$(PackageVersion).nupkg</_AOTCrossNuGetPath>
56
+ + <_AOTCrossNuGetPath>$(LibrariesShippingPackagesDir)Microsoft.NETCore.App.Runtime.AOT.$(NETCoreSdkRuntimeIdentifier).Cross.$(RuntimeIdentifier).$(_PackageVersion).nupkg</_AOTCrossNuGetPath>
57
+ </PropertyGroup>
58
+
59
+ <Error Text="Could not find cross compiler nupkg at $(_AOTCrossNuGetPath). Found packages: @(_BuiltNuGets)"
60
+ diff --git a/src/libraries/Common/tests/Tests/System/StringTests.cs b/src/libraries/Common/tests/Tests/System/StringTests.cs
61
+ index 08a2f6a3509b5d..c9c617ca640db9 100644
62
+ --- a/src/libraries/Common/tests/Tests/System/StringTests.cs
63
+ +++ b/src/libraries/Common/tests/Tests/System/StringTests.cs
64
+ @@ -2918,6 +2918,7 @@ public static void IndexOf_AllSubstrings(string s, string value, int startIndex,
65
+ }
66
+
67
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotInvariantGlobalization))]
68
+ + [ActiveIssue("https://github.com/dotnet/runtime/issues/60568", TestPlatforms.Android)]
69
+ public static void IndexOf_TurkishI_TurkishCulture()
70
+ {
71
+ using (new ThreadCultureChange("tr-TR"))
72
+ @@ -3001,6 +3002,7 @@ public static void IndexOf_TurkishI_EnglishUSCulture()
73
+ }
74
+
75
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotInvariantGlobalization))]
76
+ + [ActiveIssue("https://github.com/dotnet/runtime/issues/60568", TestPlatforms.Android)]
77
+ public static void IndexOf_HungarianDoubleCompression_HungarianCulture()
78
+ {
79
+ using (new ThreadCultureChange("hu-HU"))
80
+ @@ -5123,20 +5125,24 @@ public static void ToLower_String(string s, string expected)
81
+
82
+ private static IEnumerable<object[]> ToLower_Culture_TestData()
83
+ {
84
+ - var tuples = new[]
85
+ + List<Tuple<char, char, CultureInfo>> tuples = new List<Tuple<char, char, CultureInfo>>();
86
+ +
87
+ + // Android has different results w/ tr-TR
88
+ + // See https://github.com/dotnet/runtime/issues/60568
89
+ + if (!PlatformDetection.IsAndroid)
90
+ {
91
+ - Tuple.Create('\u0049', '\u0131', new CultureInfo("tr-TR")),
92
+ - Tuple.Create('\u0130', '\u0069', new CultureInfo("tr-TR")),
93
+ - Tuple.Create('\u0131', '\u0131', new CultureInfo("tr-TR")),
94
+ + tuples.Add(Tuple.Create('\u0049', '\u0131', new CultureInfo("tr-TR")));
95
+ + tuples.Add(Tuple.Create('\u0130', '\u0069', new CultureInfo("tr-TR")));
96
+ + tuples.Add(Tuple.Create('\u0131', '\u0131', new CultureInfo("tr-TR")));
97
+ + }
98
+
99
+ - Tuple.Create('\u0049', '\u0069', new CultureInfo("en-US")),
100
+ - Tuple.Create('\u0130', '\u0069', new CultureInfo("en-US")),
101
+ - Tuple.Create('\u0131', '\u0131', new CultureInfo("en-US")),
102
+ + tuples.Add(Tuple.Create('\u0049', '\u0069', new CultureInfo("en-US")));
103
+ + tuples.Add(Tuple.Create('\u0130', '\u0069', new CultureInfo("en-US")));
104
+ + tuples.Add(Tuple.Create('\u0131', '\u0131', new CultureInfo("en-US")));
105
+
106
+ - Tuple.Create('\u0049', '\u0069', CultureInfo.InvariantCulture),
107
+ - Tuple.Create('\u0130', '\u0130', CultureInfo.InvariantCulture),
108
+ - Tuple.Create('\u0131', '\u0131', CultureInfo.InvariantCulture),
109
+ - };
110
+ + tuples.Add(Tuple.Create('\u0049', '\u0069', CultureInfo.InvariantCulture));
111
+ + tuples.Add(Tuple.Create('\u0130', '\u0130', CultureInfo.InvariantCulture));
112
+ + tuples.Add(Tuple.Create('\u0131', '\u0131', CultureInfo.InvariantCulture));
113
+
114
+ foreach (Tuple<char, char, CultureInfo> tuple in tuples)
115
+ {
116
+ @@ -5610,9 +5616,14 @@ public static void MakeSureNoToUpperChecksGoOutOfRange()
117
+
118
+ public static IEnumerable<object[]> ToUpper_Culture_TestData()
119
+ {
120
+ - yield return new object[] { "h\u0069 world", "H\u0130 WORLD", new CultureInfo("tr-TR") };
121
+ - yield return new object[] { "h\u0130 world", "H\u0130 WORLD", new CultureInfo("tr-TR") };
122
+ - yield return new object[] { "h\u0131 world", "H\u0049 WORLD", new CultureInfo("tr-TR") };
123
+ + // Android has different results w/ tr-TR
124
+ + // See https://github.com/dotnet/runtime/issues/60568
125
+ + if (!PlatformDetection.IsAndroid)
126
+ + {
127
+ + yield return new object[] { "h\u0069 world", "H\u0130 WORLD", new CultureInfo("tr-TR") };
128
+ + yield return new object[] { "h\u0130 world", "H\u0130 WORLD", new CultureInfo("tr-TR") };
129
+ + yield return new object[] { "h\u0131 world", "H\u0049 WORLD", new CultureInfo("tr-TR") };
130
+ + }
131
+
132
+ yield return new object[] { "h\u0069 world", "H\u0049 WORLD", new CultureInfo("en-US") };
133
+ yield return new object[] { "h\u0130 world", "H\u0130 WORLD", new CultureInfo("en-US") };
134
+ @@ -5683,6 +5694,7 @@ public static IEnumerable<object[]> ToUpper_TurkishI_TurkishCulture_MemberData()
135
+
136
+ [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotInvariantGlobalization))]
137
+ [MemberData(nameof(ToUpper_TurkishI_TurkishCulture_MemberData))]
138
+ + [ActiveIssue("https://github.com/dotnet/runtime/issues/60568", TestPlatforms.Android)]
139
+ public static void ToUpper_TurkishI_TurkishCulture(string s, string expected)
140
+ {
141
+ using (new ThreadCultureChange("tr-TR"))
142
+ @@ -6774,7 +6786,9 @@ public static IEnumerable<object[]> CompareTest_TestData()
143
+ yield return new object[] { "", null, "en-us", true, 1 };
144
+ yield return new object[] { "", null, null, true, 1 };
145
+
146
+ - if (PlatformDetection.IsNotInvariantGlobalization)
147
+ + // Android has different results w/ tr-TR
148
+ + // See https://github.com/dotnet/runtime/issues/60568
149
+ + if (PlatformDetection.IsNotInvariantGlobalization && !PlatformDetection.IsAndroid)
150
+ {
151
+ yield return new object[] { "latin i", "Latin I", "tr-TR", false, 1 };
152
+ yield return new object[] { "latin i", "Latin I", "tr-TR", true, 1 };
153
+ @@ -6794,8 +6808,13 @@ public static IEnumerable<object[]> UpperLowerCasing_TestData()
154
+
155
+ if (PlatformDetection.IsNotInvariantGlobalization)
156
+ {
157
+ - yield return new object[] { "turky \u0131", "TURKY I", "tr-TR" };
158
+ - yield return new object[] { "turky i", "TURKY \u0130", "tr-TR" };
159
+ + // Android has different results w/ tr-TR
160
+ + // See https://github.com/dotnet/runtime/issues/60568
161
+ + if (!PlatformDetection.IsAndroid)
162
+ + {
163
+ + yield return new object[] { "turky \u0131", "TURKY I", "tr-TR" };
164
+ + yield return new object[] { "turky i", "TURKY \u0130", "tr-TR" };
165
+ + }
166
+ yield return new object[] { "\ud801\udc29", PlatformDetection.IsWindows7 ? "\ud801\udc29" : "\ud801\udc01", "en-US" };
167
+ }
168
+ }
169
+ @@ -6810,7 +6829,9 @@ public static IEnumerable<object[]> StartEndWith_TestData()
170
+ yield return new object[] { "ABcd", "ab", "CD", "en-US", false, false };
171
+ yield return new object[] { "abcd", "AB", "CD", "en-US", true, true };
172
+
173
+ - if (PlatformDetection.IsNotInvariantGlobalization)
174
+ + // Android has different results w/ tr-TR
175
+ + // See https://github.com/dotnet/runtime/issues/60568
176
+ + if (PlatformDetection.IsNotInvariantGlobalization && !PlatformDetection.IsAndroid)
177
+ {
178
+ yield return new object[] { "i latin i", "I Latin", "I", "tr-TR", false, false };
179
+ yield return new object[] { "i latin i", "I Latin", "I", "tr-TR", true, false };
180
+ diff --git a/src/libraries/Directory.Build.targets b/src/libraries/Directory.Build.targets
181
+ index 29bd80118ee7d7..362a93ebef916d 100644
182
+ --- a/src/libraries/Directory.Build.targets
183
+ +++ b/src/libraries/Directory.Build.targets
184
+ @@ -7,11 +7,6 @@
185
+ <StrongNameKeyId Condition="'$(IsTestProject)' == 'true' or '$(IsTestSupportProject)' == 'true'">$(TestStrongNameKeyId)</StrongNameKeyId>
186
+ </PropertyGroup>
187
+
188
+ - <PropertyGroup Condition="'$(TestUsingWorkloads)' == 'true'">
189
+ - <!-- for non-ci builds, we install the sdk when tests are run -->
190
+ - <InstallWorkloadForTesting Condition="'$(ContinuousIntegrationBuild)' == 'true' and '$(ArchiveTests)' == 'true'">true</InstallWorkloadForTesting>
191
+ - </PropertyGroup>
192
+ -
193
+ <!-- resources.targets need to be imported before the Arcade SDK. -->
194
+ <Import Project="$(RepositoryEngineeringDir)resources.targets" />
195
+ <Import Project="..\..\Directory.Build.targets" />
196
+ @@ -272,6 +267,4 @@
197
+ <Error Condition="'%(_AnalyzerPackFile.TargetFramework)' != 'netstandard2.0'"
198
+ Text="Analyzers must only target netstandard2.0 since they run in the compiler which targets netstandard2.0. The following files were found to target '%(_AnalyzerPackFile.TargetFramework)': @(_AnalyzerPackFile)" />
199
+ </Target>
200
+ -
201
+ - <Import Project="$(MSBuildThisFileDirectory)workloads-testing.targets" />
202
+ </Project>
203
+ diff --git a/src/libraries/System.Diagnostics.TextWriterTraceListener/tests/XmlWriterTraceListenerTests.cs b/src/libraries/System.Diagnostics.TextWriterTraceListener/tests/XmlWriterTraceListenerTests.cs
204
+ index 418e7b04d952f0..d71818e9fd097a 100644
205
+ --- a/src/libraries/System.Diagnostics.TextWriterTraceListener/tests/XmlWriterTraceListenerTests.cs
206
+ +++ b/src/libraries/System.Diagnostics.TextWriterTraceListener/tests/XmlWriterTraceListenerTests.cs
207
+ @@ -160,7 +160,6 @@ public void ListenerWithFilter()
208
+ [InlineData("<Escaped Message>", "&lt;Escaped Message&gt;")]
209
+ [InlineData("&\"\'", "&amp;\"\'")]
210
+ [InlineData("Hello\n\r", "Hello\n\r")]
211
+ - [ActiveIssue("https://github.com/dotnet/runtime/issues/50925", TestPlatforms.Android)]
212
+ public void WriteTest(string message, string expectedXml)
213
+ {
214
+ string file = GetTestFilePath();
215
+ @@ -187,7 +186,6 @@ public void WriteTest(string message, string expectedXml)
216
+ [Theory]
217
+ [InlineData("Fail:", null)]
218
+ [InlineData("Fail:", "the process failed when running")]
219
+ - [ActiveIssue("https://github.com/dotnet/runtime/issues/50925", TestPlatforms.Android)]
220
+ public void FailTest(string message, string detailMessage)
221
+ {
222
+ string file = GetTestFilePath();
223
+ diff --git a/src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/PipeReader.cs b/src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/PipeReader.cs
224
+ index 52a5a3caff92bb..5c1beb95c6b9a6 100644
225
+ --- a/src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/PipeReader.cs
226
+ +++ b/src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/PipeReader.cs
227
+ @@ -15,7 +15,15 @@ public abstract partial class PipeReader
228
+ /// <summary>Attempts to synchronously read data from the <see cref="System.IO.Pipelines.PipeReader" />.</summary>
229
+ /// <param name="result">When this method returns <see langword="true" />, this value is set to a <see cref="System.IO.Pipelines.ReadResult" /> instance that represents the result of the read call; otherwise, this value is set to <see langword="default" />.</param>
230
+ /// <returns><see langword="true" /> if data was available, or if the call was canceled or the writer was completed; otherwise, <see langword="false" />.</returns>
231
+ - /// <remarks>If the pipe returns <see langword="false" />, there is no need to call <see cref="System.IO.Pipelines.PipeReader.AdvanceTo(System.SequencePosition,System.SequencePosition)" />.</remarks>
232
+ + /// <remarks><format type="text/markdown"><![CDATA[
233
+ + /// If the pipe returns <see langword="false" />, there is no need to call <see cref="System.IO.Pipelines.PipeReader.AdvanceTo(System.SequencePosition,System.SequencePosition)" />.
234
+ + /// [!IMPORTANT]
235
+ + /// The `System.IO.Pipelines.PipeReader` implementation returned by `System.IO.Pipelines.PipeReader.Create(System.IO.Stream, System.IO.Pipelines.StreamPipeReaderOptions?)`
236
+ + /// will not read new data from the backing `System.IO.Stream` when `System.IO.Pipelines.PipeReader.TryRead(out System.IO.Pipelines.ReadResult)` is called.
237
+ + ///
238
+ + /// `System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)` must be called to read new data from the backing `System.IO.Stream`.
239
+ + /// Any unconsumed data from a previous asynchronous read will be available to `System.IO.Pipelines.PipeReader.TryRead(out System.IO.Pipelines.ReadResult)`.
240
+ + /// ]]></format></remarks>
241
+ public abstract bool TryRead(out ReadResult result);
242
+
243
+ /// <summary>Asynchronously reads a sequence of bytes from the current <see cref="System.IO.Pipelines.PipeReader" />.</summary>
244
+ diff --git a/src/libraries/System.Private.CoreLib/src/System/Resources/ResourceReader.cs b/src/libraries/System.Private.CoreLib/src/System/Resources/ResourceReader.cs
245
+ index 16e2b161fc0dbf..9aa2c73bb74719 100644
246
+ --- a/src/libraries/System.Private.CoreLib/src/System/Resources/ResourceReader.cs
247
+ +++ b/src/libraries/System.Private.CoreLib/src/System/Resources/ResourceReader.cs
248
+ @@ -575,7 +575,11 @@ private unsafe string AllocateStringForNameIndex(int index, out int dataOffset)
249
+ return new TimeSpan(_store.ReadInt64());
250
+ else if (type == typeof(decimal))
251
+ {
252
+ +#if RESOURCES_EXTENSIONS
253
+ int[] bits = new int[4];
254
+ +#else
255
+ + Span<int> bits = stackalloc int[4];
256
+ +#endif
257
+ for (int i = 0; i < bits.Length; i++)
258
+ bits[i] = _store.ReadInt32();
259
+ return new decimal(bits);
260
+ diff --git a/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.Tests/BooleanTests.cs b/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.Tests/BooleanTests.cs
261
+ index 063174d3e35771..2d703c3abdb2ff 100644
262
+ --- a/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.Tests/BooleanTests.cs
263
+ +++ b/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.Tests/BooleanTests.cs
264
+ @@ -90,6 +90,7 @@ public class BooleanTests
265
+ const ushort VARIANT_FALSE = 0;
266
+
267
+ [Fact]
268
+ + [ActiveIssue("https://github.com/dotnet/runtime/issues/60649", TestRuntimes.Mono)]
269
+ public void ValidateBoolIsMarshalledAsExpected()
270
+ {
271
+ Assert.Equal((uint)1, NativeExportsNE.ReturnByteBoolAsUInt(true));
272
+ diff --git a/src/libraries/System.Runtime/tests/System/DateTimeOffsetTests.cs b/src/libraries/System.Runtime/tests/System/DateTimeOffsetTests.cs
273
+ index 67c3f9a678b298..043fa669ccdb7b 100644
274
+ --- a/src/libraries/System.Runtime/tests/System/DateTimeOffsetTests.cs
275
+ +++ b/src/libraries/System.Runtime/tests/System/DateTimeOffsetTests.cs
276
+ @@ -1255,6 +1255,7 @@ public static IEnumerable<object[]> ToString_MatchesExpected_MemberData()
277
+
278
+ [Theory]
279
+ [MemberData(nameof(ToString_MatchesExpected_MemberData))]
280
+ + [ActiveIssue("https://github.com/dotnet/runtime/issues/60562", TestPlatforms.Android)]
281
+ public static void ToString_MatchesExpected(DateTimeOffset dateTimeOffset, string format, IFormatProvider provider, string expected)
282
+ {
283
+ if (provider == null)
284
+ @@ -1354,6 +1355,7 @@ public static void TryFormat_ToString_EqualResults()
285
+
286
+ [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotInvariantGlobalization))]
287
+ [MemberData(nameof(ToString_MatchesExpected_MemberData))]
288
+ + [ActiveIssue("https://github.com/dotnet/runtime/issues/60562", TestPlatforms.Android)]
289
+ public static void TryFormat_MatchesExpected(DateTimeOffset dateTimeOffset, string format, IFormatProvider provider, string expected)
290
+ {
291
+ var destination = new char[expected.Length];
292
+ diff --git a/src/libraries/System.Runtime/tests/System/DateTimeTests.cs b/src/libraries/System.Runtime/tests/System/DateTimeTests.cs
293
+ index d2b40c647dfd3c..1a9a487ecd4849 100644
294
+ --- a/src/libraries/System.Runtime/tests/System/DateTimeTests.cs
295
+ +++ b/src/libraries/System.Runtime/tests/System/DateTimeTests.cs
296
+ @@ -2110,6 +2110,7 @@ public static void ParseExact_Span_InvalidInputs_Fail(string input, string forma
297
+
298
+ [Theory]
299
+ [MemberData(nameof(ToString_MatchesExpected_MemberData))]
300
+ + [ActiveIssue("https://github.com/dotnet/runtime/issues/60562", TestPlatforms.Android)]
301
+ public void ToString_Invoke_ReturnsExpected(DateTime dateTime, string format, IFormatProvider provider, string expected)
302
+ {
303
+ if (provider == null)
304
+ @@ -2355,6 +2356,7 @@ public static void TryFormat_MatchesToString(string format)
305
+
306
+ [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotInvariantGlobalization))]
307
+ [MemberData(nameof(ToString_MatchesExpected_MemberData))]
308
+ + [ActiveIssue("https://github.com/dotnet/runtime/issues/60562", TestPlatforms.Android)]
309
+ public static void TryFormat_MatchesExpected(DateTime dateTime, string format, IFormatProvider provider, string expected)
310
+ {
311
+ var destination = new char[expected.Length];
312
+ diff --git a/src/libraries/System.Runtime/tests/System/Reflection/ModuleTests.cs b/src/libraries/System.Runtime/tests/System/Reflection/ModuleTests.cs
313
+ index 7ebf93afcc3fe6..9d44bbce1d0122 100644
314
+ --- a/src/libraries/System.Runtime/tests/System/Reflection/ModuleTests.cs
315
+ +++ b/src/libraries/System.Runtime/tests/System/Reflection/ModuleTests.cs
316
+ @@ -163,6 +163,7 @@ public void GetField_NullName()
317
+ }
318
+
319
+ [Fact]
320
+ + [ActiveIssue("https://github.com/dotnet/runtime/issues/60558", TestPlatforms.Android)]
321
+ public void GetField()
322
+ {
323
+ FieldInfo testInt = TestModule.GetField("TestInt", BindingFlags.Public | BindingFlags.Static);
324
+ diff --git a/src/libraries/System.Runtime/tests/System/StringTests.cs b/src/libraries/System.Runtime/tests/System/StringTests.cs
325
+ index b0786bb2370fb5..993f5c9eba34aa 100644
326
+ --- a/src/libraries/System.Runtime/tests/System/StringTests.cs
327
+ +++ b/src/libraries/System.Runtime/tests/System/StringTests.cs
328
+ @@ -315,6 +315,7 @@ public static void Contains_String_StringComparison(string s, string value, Stri
329
+ }
330
+
331
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotInvariantGlobalization))]
332
+ + [ActiveIssue("https://github.com/dotnet/runtime/issues/60568", TestPlatforms.Android)]
333
+ public static void Contains_StringComparison_TurkishI()
334
+ {
335
+ const string Source = "\u0069\u0130";
336
+ @@ -782,6 +783,7 @@ public void Replace_StringComparison_ReturnsExpected(string original, string old
337
+ }
338
+
339
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotInvariantGlobalization))]
340
+ + [ActiveIssue("https://github.com/dotnet/runtime/issues/60568", TestPlatforms.Android)]
341
+ public void Replace_StringComparison_TurkishI()
342
+ {
343
+ const string Source = "\u0069\u0130";
344
+ @@ -826,8 +828,14 @@ public static IEnumerable<object[]> Replace_StringComparisonCulture_TestData()
345
+ yield return new object[] { "abc", "abc" + SoftHyphen, "def", false, CultureInfo.InvariantCulture, "def" };
346
+ yield return new object[] { "abc", "abc" + SoftHyphen, "def", true, CultureInfo.InvariantCulture, "def" };
347
+
348
+ - yield return new object[] { "\u0069\u0130", "\u0069", "a", false, new CultureInfo("tr-TR"), "a\u0130" };
349
+ - yield return new object[] { "\u0069\u0130", "\u0069", "a", true, new CultureInfo("tr-TR"), "aa" };
350
+ + // Android has different results w/ tr-TR
351
+ + // See https://github.com/dotnet/runtime/issues/60568
352
+ + if (!PlatformDetection.IsAndroid)
353
+ + {
354
+ + yield return new object[] { "\u0069\u0130", "\u0069", "a", false, new CultureInfo("tr-TR"), "a\u0130" };
355
+ + yield return new object[] { "\u0069\u0130", "\u0069", "a", true, new CultureInfo("tr-TR"), "aa" };
356
+ + }
357
+ +
358
+ yield return new object[] { "\u0069\u0130", "\u0069", "a", false, CultureInfo.InvariantCulture, "a\u0130" };
359
+ yield return new object[] { "\u0069\u0130", "\u0069", "a", true, CultureInfo.InvariantCulture, "a\u0130" };
360
+ }
361
+ @@ -1104,6 +1112,7 @@ public static void IndexOf_SingleLetter_StringComparison(string s, char target,
362
+ }
363
+
364
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotInvariantGlobalization))]
365
+ + [ActiveIssue("https://github.com/dotnet/runtime/issues/60568", TestPlatforms.Android)]
366
+ public static void IndexOf_TurkishI_TurkishCulture_Char()
367
+ {
368
+ using (new ThreadCultureChange("tr-TR"))
369
+ diff --git a/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs b/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs
370
+ index a75d4003b3ed7c..9e8e39f7d35efc 100644
371
+ --- a/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs
372
+ +++ b/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs
373
+ @@ -2349,6 +2349,14 @@ public static IEnumerable<object[]> SystemTimeZonesTestData()
374
+ "Zulu"
375
+ };
376
+
377
+ + // On Android GMT, GMT+0, and GMT-0 are values
378
+ + private static readonly string[] s_GMTAliases = new [] {
379
+ + "GMT",
380
+ + "GMT0",
381
+ + "GMT+0",
382
+ + "GMT-0"
383
+ + };
384
+ +
385
+ [Theory]
386
+ [MemberData(nameof(SystemTimeZonesTestData))]
387
+ [PlatformSpecific(TestPlatforms.AnyUnix)]
388
+ @@ -2401,7 +2409,12 @@ public static void TimeZoneDisplayNames_Unix(TimeZoneInfo timeZone)
389
+ // All we can really say generically here is that they aren't empty.
390
+ Assert.False(string.IsNullOrWhiteSpace(timeZone.DisplayName), $"Id: \"{timeZone.Id}\", DisplayName should not have been empty.");
391
+ Assert.False(string.IsNullOrWhiteSpace(timeZone.StandardName), $"Id: \"{timeZone.Id}\", StandardName should not have been empty.");
392
+ - Assert.False(string.IsNullOrWhiteSpace(timeZone.DaylightName), $"Id: \"{timeZone.Id}\", DaylightName should not have been empty.");
393
+ +
394
+ + // GMT* on Android does sets daylight savings time to false, so there will be no DaylightName
395
+ + if (!PlatformDetection.IsAndroid || (PlatformDetection.IsAndroid && !timeZone.Id.StartsWith("GMT")))
396
+ + {
397
+ + Assert.False(string.IsNullOrWhiteSpace(timeZone.DaylightName), $"Id: \"{timeZone.Id}\", DaylightName should not have been empty.");
398
+ + }
399
+ }
400
+ }
401
+
402
+ @@ -2586,6 +2599,10 @@ public static void TimeZoneInfo_DisplayNameStartsWithOffset(TimeZoneInfo tzi)
403
+ // UTC and all of its aliases (Etc/UTC, and others) start with just "(UTC) "
404
+ Assert.StartsWith("(UTC) ", tzi.DisplayName);
405
+ }
406
+ + else if (s_GMTAliases.Contains(tzi.Id, StringComparer.OrdinalIgnoreCase))
407
+ + {
408
+ + Assert.StartsWith("GMT", tzi.DisplayName);
409
+ + }
410
+ else
411
+ {
412
+ Assert.False(string.IsNullOrWhiteSpace(tzi.StandardName));
413
+ @@ -2701,6 +2718,7 @@ public static void IsIanaIdTest()
414
+ }
415
+
416
+ [ConditionalFact(nameof(DoesNotSupportIanaNamesConversion))]
417
+ + [PlatformSpecific(~TestPlatforms.Android)]
418
+ public static void UnsupportedImplicitConversionTest()
419
+ {
420
+ string nonNativeTzName = s_isWindows ? "America/Los_Angeles" : "Pacific Standard Time";
421
+ diff --git a/src/libraries/System.Text.RegularExpressions/tests/RegexCultureTests.cs b/src/libraries/System.Text.RegularExpressions/tests/RegexCultureTests.cs
422
+ index 86dc23b0fe35c8..ac0bc82bff7a79 100644
423
+ --- a/src/libraries/System.Text.RegularExpressions/tests/RegexCultureTests.cs
424
+ +++ b/src/libraries/System.Text.RegularExpressions/tests/RegexCultureTests.cs
425
+ @@ -190,6 +190,7 @@ Regex[] Create(string input, CultureInfo info, RegexOptions additional)
426
+
427
+ [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "Doesn't support NonBacktracking")]
428
+ [Fact]
429
+ + [ActiveIssue("https://github.com/dotnet/runtime/issues/60568", TestPlatforms.Android)]
430
+ public void TurkishI_Is_Differently_LowerUpperCased_In_Turkish_Culture_NonBacktracking()
431
+ {
432
+ var turkish = new CultureInfo("tr-TR");
433
+ @@ -275,11 +276,17 @@ public static IEnumerable<object[]> Match_In_Different_Cultures_TestData()
434
+ yield return new object[] { "(?i:iI+)", options, invariant, "abc\u0130\u0131Ixyz", "" };
435
+
436
+ // Expected answers in the Turkish culture
437
+ - yield return new object[] { "(?i:I)", options, turkish, "xy\u0131ab", "\u0131" };
438
+ - yield return new object[] { "(?i:iI+)", options, turkish, "abcIIIxyz", "" };
439
+ - yield return new object[] { "(?i:iI+)", options, turkish, "abcIi\u0130xyz", "" };
440
+ - yield return new object[] { "(?i:iI+)", options, turkish, "abcI\u0130ixyz", "" };
441
+ - yield return new object[] { "(?i:[^IJKLM]I)", options, turkish, "ii\u0130i\u0131ab", "i\u0131" };
442
+ + //
443
+ + // Android produces unexpected results for tr-TR
444
+ + // https://github.com/dotnet/runtime/issues/60568
445
+ + if (!PlatformDetection.IsAndroid)
446
+ + {
447
+ + yield return new object[] { "(?i:I)", options, turkish, "xy\u0131ab", "\u0131" };
448
+ + yield return new object[] { "(?i:iI+)", options, turkish, "abcIIIxyz", "" };
449
+ + yield return new object[] { "(?i:iI+)", options, turkish, "abcIi\u0130xyz", "" };
450
+ + yield return new object[] { "(?i:iI+)", options, turkish, "abcI\u0130ixyz", "" };
451
+ + yield return new object[] { "(?i:[^IJKLM]I)", options, turkish, "ii\u0130i\u0131ab", "i\u0131" };
452
+ + }
453
+
454
+ // None and Compiled are separated into the Match_In_Different_Cultures_CriticalCases test
455
+ if (options == RegexHelpers.RegexOptionNonBacktracking)
456
+ @@ -305,9 +312,14 @@ public static IEnumerable<object[]> Match_In_Different_Cultures_CriticalCases_Te
457
+ yield return new object[] { "(?i:[^IJKLM]I)", options, invariant, "ii\u0130i\u0131ab", "\u0130i" }; // <-- failing for None, Compiled
458
+
459
+ // Expected answers in the Turkish culture
460
+ - yield return new object[] { "(?i:iI+)", options, turkish, "abc\u0130IIxyz", "\u0130II" }; // <-- failing for None, Compiled
461
+ - yield return new object[] { "(?i:iI+)", options, turkish, "abc\u0130\u0131Ixyz", "\u0130\u0131I" }; // <-- failing for None, Compiled
462
+ - yield return new object[] { "(?i:iI+)", options, turkish, "abc\u0130Iixyz", "\u0130I" }; // <-- failing for None, Compiled
463
+ + // Android produces unexpected results for tr-TR
464
+ + // https://github.com/dotnet/runtime/issues/60568
465
+ + if (!PlatformDetection.IsAndroid)
466
+ + {
467
+ + yield return new object[] { "(?i:iI+)", options, turkish, "abc\u0130IIxyz", "\u0130II" }; // <-- failing for None, Compiled
468
+ + yield return new object[] { "(?i:iI+)", options, turkish, "abc\u0130\u0131Ixyz", "\u0130\u0131I" }; // <-- failing for None, Compiled
469
+ + yield return new object[] { "(?i:iI+)", options, turkish, "abc\u0130Iixyz", "\u0130I" }; // <-- failing for None, Compiled
470
+ + }
471
+ }
472
+
473
+ public static IEnumerable<object[]> Match_In_Different_Cultures_CriticalCases_TestData() =>
474
+ diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj
475
+ index 5e8478e3258817..8306ba65778b10 100644
476
+ --- a/src/libraries/tests.proj
477
+ +++ b/src/libraries/tests.proj
478
+ @@ -75,9 +75,6 @@
479
+ <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Threading.Thread\tests\System.Threading.Thread.Tests.csproj" />
480
+
481
+ <!-- Actual test failures -->
482
+ - <!-- https://github.com/dotnet/runtime/issues/37088 -->
483
+ - <!--<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Runtime\tests\System.Runtime.Tests.csproj" />-->
484
+ -
485
+ <!-- https://github.com/dotnet/runtime/issues/50871 -->
486
+ <ProjectExclusions Include="$(MSBuildThisFileDirectory)Microsoft.Extensions.DependencyInjection\tests\DI.Tests\Microsoft.Extensions.DependencyInjection.Tests.csproj" />
487
+
488
+ diff --git a/src/mono/wasm/build/WasmApp.Native.targets b/src/mono/wasm/build/WasmApp.Native.targets
489
+ index e42c22e4464c17..69facc5d7204a3 100644
490
+ --- a/src/mono/wasm/build/WasmApp.Native.targets
491
+ +++ b/src/mono/wasm/build/WasmApp.Native.targets
492
+ @@ -161,6 +161,7 @@
493
+ <_EmccOptimizationFlagDefault Condition="'$(_EmccOptimizationFlagDefault)' == ''">-Oz</_EmccOptimizationFlagDefault>
494
+
495
+ <EmccCompileOptimizationFlag Condition="'$(EmccCompileOptimizationFlag)' == ''">$(_EmccOptimizationFlagDefault)</EmccCompileOptimizationFlag>
496
+ + <EmccLinkOptimizationFlag Condition="'$(EmccLinkOptimizationFlag)' == '' and '$(Configuration)' == 'Release'">-O2</EmccLinkOptimizationFlag>
497
+ <EmccLinkOptimizationFlag Condition="'$(EmccLinkOptimizationFlag)' == ''" >$(EmccCompileOptimizationFlag)</EmccLinkOptimizationFlag>
498
+
499
+ <_EmccCompileRsp>$(_WasmIntermediateOutputPath)emcc-compile.rsp</_EmccCompileRsp>
500
+ diff --git a/src/mono/wasm/runtime/CMakeLists.txt b/src/mono/wasm/runtime/CMakeLists.txt
501
+ index d2c59089a49c22..450d8df3918b8b 100644
502
+ --- a/src/mono/wasm/runtime/CMakeLists.txt
503
+ +++ b/src/mono/wasm/runtime/CMakeLists.txt
504
+ @@ -25,7 +25,7 @@ target_link_libraries(dotnet
505
+
506
+ set_target_properties(dotnet PROPERTIES
507
+ LINK_DEPENDS "${NATIVE_BIN_DIR}/src/emcc-default.rsp;${NATIVE_BIN_DIR}/src/runtime.iffe.js;${SOURCE_DIR}/library-dotnet.js;${SYSTEM_NATIVE_DIR}/pal_random.js"
508
+ - LINK_FLAGS "@${NATIVE_BIN_DIR}/src/emcc-default.rsp ${CONFIGURATION_EMCC_FLAGS} -DENABLE_NETCORE=1 --pre-js ${NATIVE_BIN_DIR}/src/runtime.iffe.js --js-library ${SOURCE_DIR}/library-dotnet.js --js-library ${SYSTEM_NATIVE_DIR}/pal_random.js"
509
+ + LINK_FLAGS "@${NATIVE_BIN_DIR}/src/emcc-default.rsp ${CONFIGURATION_LINK_FLAGS} -DENABLE_NETCORE=1 --pre-js ${NATIVE_BIN_DIR}/src/runtime.iffe.js --js-library ${SOURCE_DIR}/library-dotnet.js --js-library ${SYSTEM_NATIVE_DIR}/pal_random.js"
510
+ RUNTIME_OUTPUT_DIRECTORY "${NATIVE_BIN_DIR}")
511
+
512
+ if(CMAKE_BUILD_TYPE STREQUAL "Release")
513
+ diff --git a/src/mono/wasm/wasm.proj b/src/mono/wasm/wasm.proj
514
+ index 53b1fe1fd7c756..1f85febd2f9dd6 100644
515
+ --- a/src/mono/wasm/wasm.proj
516
+ +++ b/src/mono/wasm/wasm.proj
517
+ @@ -149,8 +149,10 @@
518
+ <PInvokeTableFile>$(ArtifactsObjDir)wasm/pinvoke-table.h</PInvokeTableFile>
519
+ <CMakeConfigurationEmccFlags Condition="'$(Configuration)' == 'Debug'">-g -Os -s -DDEBUG=1</CMakeConfigurationEmccFlags>
520
+ <CMakeConfigurationEmccFlags Condition="'$(Configuration)' == 'Release'">-Oz</CMakeConfigurationEmccFlags>
521
+ + <CMakeConfigurationLinkFlags Condition="'$(Configuration)' == 'Debug'">$(CMakeConfigurationEmccFlags)</CMakeConfigurationLinkFlags>
522
+ + <CMakeConfigurationLinkFlags Condition="'$(Configuration)' == 'Release'">-O2</CMakeConfigurationLinkFlags>
523
+ <CMakeConfigurationEmsdkPath Condition="'$(Configuration)' == 'Release'"> -DEMSDK_PATH=&quot;$(EMSDK_PATH.TrimEnd('\/'))&quot;</CMakeConfigurationEmsdkPath>
524
+ - <CMakeBuildRuntimeConfigureCmd>emcmake cmake $(MSBuildThisFileDirectory)runtime -DCMAKE_BUILD_TYPE=$(Configuration) -DCONFIGURATION_EMCC_FLAGS=&quot;$(CMakeConfigurationEmccFlags)&quot; -DMONO_INCLUDES=&quot;$(MonoArtifactsPath)include/mono-2.0&quot; -DMONO_OBJ_INCLUDES=&quot;$(MonoObjDir.TrimEnd('\/'))&quot; -DICU_LIB_DIR=&quot;$(ICULibDir.TrimEnd('\/'))&quot; -DMONO_ARTIFACTS_DIR=&quot;$(MonoArtifactsPath.TrimEnd('\/'))&quot; -DNATIVE_BIN_DIR=&quot;$(NativeBinDir.TrimEnd('\/'))&quot; -DSYSTEM_NATIVE_DIR=&quot;$(RepoRoot)src/libraries/Native/Unix/System.Native&quot; -DSOURCE_DIR=&quot;$(MSBuildThisFileDirectory.TrimEnd('\/'))/runtime&quot;$(CMakeConfigurationEmsdkPath)</CMakeBuildRuntimeConfigureCmd>
525
+ + <CMakeBuildRuntimeConfigureCmd>emcmake cmake $(MSBuildThisFileDirectory)runtime -DCMAKE_BUILD_TYPE=$(Configuration) -DCONFIGURATION_EMCC_FLAGS=&quot;$(CMakeConfigurationEmccFlags)&quot; -DCONFIGURATION_LINK_FLAGS=&quot;$(CMakeConfigurationLinkFlags)&quot; -DMONO_INCLUDES=&quot;$(MonoArtifactsPath)include/mono-2.0&quot; -DMONO_OBJ_INCLUDES=&quot;$(MonoObjDir.TrimEnd('\/'))&quot; -DICU_LIB_DIR=&quot;$(ICULibDir.TrimEnd('\/'))&quot; -DMONO_ARTIFACTS_DIR=&quot;$(MonoArtifactsPath.TrimEnd('\/'))&quot; -DNATIVE_BIN_DIR=&quot;$(NativeBinDir.TrimEnd('\/'))&quot; -DSYSTEM_NATIVE_DIR=&quot;$(RepoRoot)src/libraries/Native/Unix/System.Native&quot; -DSOURCE_DIR=&quot;$(MSBuildThisFileDirectory.TrimEnd('\/'))/runtime&quot;$(CMakeConfigurationEmsdkPath)</CMakeBuildRuntimeConfigureCmd>
526
+ <CMakeBuildRuntimeConfigureCmd Condition="'$(OS)' == 'Windows_NT'">call &quot;$(RepositoryEngineeringDir)native\init-vs-env.cmd&quot; &amp;&amp; call &quot;$([MSBuild]::NormalizePath('$(EMSDK_PATH)', 'emsdk_env.bat'))&quot; &amp;&amp; $(CMakeBuildRuntimeConfigureCmd)</CMakeBuildRuntimeConfigureCmd>
527
+ <CMakeBuildRuntimeConfigureCmd Condition="'$(OS)' != 'Windows_NT'">bash -c 'source $(EMSDK_PATH)/emsdk_env.sh 2>&amp;1 &amp;&amp; $(CMakeBuildRuntimeConfigureCmd)'</CMakeBuildRuntimeConfigureCmd>
528
+
529
+ diff --git a/src/tests/Common/Coreclr.TestWrapper/MobileAppHandler.cs b/src/tests/Common/Coreclr.TestWrapper/MobileAppHandler.cs
530
+ index 324edcce76fa13..834bf24e451708 100644
531
+ --- a/src/tests/Common/Coreclr.TestWrapper/MobileAppHandler.cs
532
+ +++ b/src/tests/Common/Coreclr.TestWrapper/MobileAppHandler.cs
533
+ @@ -22,6 +22,12 @@ private static int HandleMobileApp(string action, string platform, string catego
534
+ {
535
+ //install or uninstall mobile app
536
+ int exitCode = -100;
537
+ +
538
+ + if (action == "install" && (File.Exists($"{testBinaryBase}/.retry") || File.Exists($"{testBinaryBase}/.reboot")))
539
+ + {
540
+ + return exitCode;
541
+ + }
542
+ +
543
+ string outputFile = Path.Combine(reportBase, action, $"{category}_{action}.output.txt");
544
+ string errorFile = Path.Combine(reportBase, action, $"{category}_{action}.error.txt");
545
+ bool platformValueFlag = true;
546
+ @@ -81,6 +87,11 @@ private static int HandleMobileApp(string action, string platform, string catego
547
+ }
548
+ }
549
+
550
+ + if (action == "install")
551
+ + {
552
+ + cmdStr += " --timeout 00:05:00";
553
+ + }
554
+ +
555
+ using (Process process = new Process())
556
+ {
557
+ if (OperatingSystem.IsWindows())
558
+ @@ -108,6 +119,19 @@ private static int HandleMobileApp(string action, string platform, string catego
559
+ {
560
+ // Process completed.
561
+ exitCode = process.ExitCode;
562
+ +
563
+ + // See https://github.com/dotnet/xharness/blob/main/src/Microsoft.DotNet.XHarness.Common/CLI/ExitCode.cs
564
+ + // 78 - PACKAGE_INSTALLATION_FAILURE
565
+ + // 81 - DEVICE_NOT_FOUND
566
+ + // 85 - ADB_DEVICE_ENUMERATION_FAILURE
567
+ + // 86 - PACKAGE_INSTALLATION_TIMEOUT
568
+ + if (action == "install" && (exitCode == 78 || exitCode == 81|| exitCode == 85|| exitCode == 86))
569
+ + {
570
+ + CreateRetryFile($"{testBinaryBase}/.retry", exitCode, category);
571
+ + CreateRetryFile($"{testBinaryBase}/.reboot", exitCode, category);
572
+ + return exitCode;
573
+ + }
574
+ +
575
+ Task.WaitAll(copyOutput, copyError);
576
+ }
577
+ else
578
+ @@ -155,5 +179,13 @@ private static string ConvertCmd2Arg(string cmd)
579
+
580
+ return $"{cmdPrefix} \"{cmd}\"";
581
+ }
582
+ +
583
+ + private static void CreateRetryFile(string fileName, int exitCode, string appName)
584
+ + {
585
+ + using (StreamWriter writer = new StreamWriter(fileName))
586
+ + {
587
+ + writer.WriteLine($"appName: {appName}; exitCode: {exitCode}");
588
+ + }
589
+ + }
590
+ }
591
+ }
592
+ diff --git a/src/tests/Interop/CMakeLists.txt b/src/tests/Interop/CMakeLists.txt
593
+ index 30a1e9ea0a879a..1914910027eb47 100644
594
+ --- a/src/tests/Interop/CMakeLists.txt
595
+ +++ b/src/tests/Interop/CMakeLists.txt
596
+ @@ -14,8 +14,6 @@ SET(CLR_INTEROP_TEST_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
597
+ include_directories(common)
598
+ add_subdirectory(PInvoke/Decimal)
599
+ add_subdirectory(PInvoke/ArrayWithOffset)
600
+ -add_subdirectory(PInvoke/BestFitMapping/Char)
601
+ -add_subdirectory(PInvoke/BestFitMapping/LPStr)
602
+ add_subdirectory(PInvoke/Delegate)
603
+ add_subdirectory(PInvoke/Primitives/Int)
604
+ add_subdirectory(PInvoke/Primitives/RuntimeHandles)
605
+ @@ -55,16 +53,18 @@ add_subdirectory(StringMarshalling/BSTR)
606
+ add_subdirectory(StringMarshalling/AnsiBSTR)
607
+ add_subdirectory(StringMarshalling/VBByRefStr)
608
+ add_subdirectory(MarshalAPI/FunctionPointer)
609
+ -add_subdirectory(MarshalAPI/IUnknown)
610
+ add_subdirectory(NativeLibrary/NativeLibraryToLoad)
611
+ add_subdirectory(DllImportAttribute/DllImportPath)
612
+ add_subdirectory(DllImportAttribute/ExactSpelling)
613
+ -add_subdirectory(ExecInDefAppDom)
614
+ add_subdirectory(ICustomMarshaler/ConflictingNames)
615
+ add_subdirectory(LayoutClass)
616
+ add_subdirectory(PInvoke/DateTime)
617
+ if(CLR_CMAKE_TARGET_WIN32)
618
+ + add_subdirectory(ExecInDefAppDom)
619
+ + add_subdirectory(MarshalAPI/IUnknown)
620
+ add_subdirectory(PInvoke/Attributes/LCID)
621
+ + add_subdirectory(PInvoke/BestFitMapping/Char)
622
+ + add_subdirectory(PInvoke/BestFitMapping/LPStr)
623
+ add_subdirectory(PInvoke/Variant)
624
+ add_subdirectory(PInvoke/Varargs)
625
+ add_subdirectory(PInvoke/NativeCallManagedComVisible)
626
+ diff --git a/src/tests/Interop/ExecInDefAppDom/ExecInDefAppDom.csproj b/src/tests/Interop/ExecInDefAppDom/ExecInDefAppDom.csproj
627
+ index 0a0137d6f3fd52..1e10117bc3dbf6 100644
628
+ --- a/src/tests/Interop/ExecInDefAppDom/ExecInDefAppDom.csproj
629
+ +++ b/src/tests/Interop/ExecInDefAppDom/ExecInDefAppDom.csproj
630
+ @@ -1,6 +1,7 @@
631
+ <Project Sdk="Microsoft.NET.Sdk">
632
+ <PropertyGroup>
633
+ <OutputType>Exe</OutputType>
634
+ + <CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
635
+ </PropertyGroup>
636
+ <ItemGroup>
637
+ <Compile Include="$(MSBuildProjectName).cs" />
638
+ diff --git a/src/tests/issues.targets b/src/tests/issues.targets
639
+ index 37f4d2615cd851..4b51bdad3d9b1f 100644
640
+ --- a/src/tests/issues.targets
641
+ +++ b/src/tests/issues.targets
642
+ @@ -73,9 +73,6 @@
643
+ <ExcludeList Include="$(XunitTestBinBase)/JIT/Directed/arglist/vararg_TargetUnix/*">
644
+ <Issue>https://github.com/dotnet/runtime/issues/10478 </Issue>
645
+ </ExcludeList>
646
+ - <ExcludeList Include="$(XunitTestBinBase)/Interop/ExecInDefAppDom/ExecInDefAppDom/*">
647
+ - <Issue>Issue building native components for the test.</Issue>
648
+ - </ExcludeList>
649
+ </ItemGroup>
650
+
651
+ <!-- All Unix targets on CoreCLR Runtime -->
652
+ diff --git a/src/tests/profiler/native/CMakeLists.txt b/src/tests/profiler/native/CMakeLists.txt
653
+ index b7357a678b15a9..b9a1f47e5ab803 100644
654
+ --- a/src/tests/profiler/native/CMakeLists.txt
655
+ +++ b/src/tests/profiler/native/CMakeLists.txt
656
+ @@ -11,6 +11,7 @@ set(SOURCES
657
+ gcbasicprofiler/gcbasicprofiler.cpp
658
+ gcprofiler/gcprofiler.cpp
659
+ getappdomainstaticaddress/getappdomainstaticaddress.cpp
660
+ + inlining/inlining.cpp
661
+ metadatagetdispenser/metadatagetdispenser.cpp
662
+ multiple/multiple.cpp
663
+ nullprofiler/nullprofiler.cpp
664
+ diff --git a/src/tests/profiler/native/classfactory.cpp b/src/tests/profiler/native/classfactory.cpp
665
+ index d09cb4c4e3bb02..de0a07ce08937d 100644
666
+ --- a/src/tests/profiler/native/classfactory.cpp
667
+ +++ b/src/tests/profiler/native/classfactory.cpp
668
+ @@ -15,6 +15,7 @@
669
+ #include "releaseondetach/releaseondetach.h"
670
+ #include "transitions/transitions.h"
671
+ #include "multiple/multiple.h"
672
+ +#include "inlining/inlining.h"
673
+
674
+ ClassFactory::ClassFactory(REFCLSID clsid) : refCount(0), clsid(clsid)
675
+ {
676
+ @@ -114,6 +115,10 @@ HRESULT STDMETHODCALLTYPE ClassFactory::CreateInstance(IUnknown *pUnkOuter, REFI
677
+ {
678
+ profiler = new MultiplyLoaded();
679
+ }
680
+ + else if (clsid == InliningProfiler::GetClsid())
681
+ + {
682
+ + profiler = new InliningProfiler();
683
+ + }
684
+ else
685
+ {
686
+ printf("No profiler found in ClassFactory::CreateInstance. Did you add your profiler to the list?\n");
687
+ diff --git a/src/tests/profiler/native/eltprofiler/slowpatheltprofiler.cpp b/src/tests/profiler/native/eltprofiler/slowpatheltprofiler.cpp
688
+ index 17b114dd68b4c8..032dd3a82fa9ca 100644
689
+ --- a/src/tests/profiler/native/eltprofiler/slowpatheltprofiler.cpp
690
+ +++ b/src/tests/profiler/native/eltprofiler/slowpatheltprofiler.cpp
691
+ @@ -21,10 +21,10 @@ shared_ptr<SlowPathELTProfiler> SlowPathELTProfiler::s_profiler;
692
+
693
+ #ifndef WIN32
694
+ #define UINT_PTR_FORMAT "lx"
695
+ -#define PROFILER_STUB EXTERN_C __attribute__((visibility("hidden"))) void STDMETHODCALLTYPE
696
+ +#define PROFILER_STUB __attribute__((visibility("hidden"))) static void STDMETHODCALLTYPE
697
+ #else // WIN32
698
+ #define UINT_PTR_FORMAT "llx"
699
+ -#define PROFILER_STUB EXTERN_C void STDMETHODCALLTYPE
700
+ +#define PROFILER_STUB static void STDMETHODCALLTYPE
701
+ #endif // WIN32
702
+
703
+ PROFILER_STUB EnterStub(FunctionIDOrClientID functionId, COR_PRF_ELT_INFO eltInfo)
704
+ diff --git a/src/tests/profiler/native/inlining/inlining.cpp b/src/tests/profiler/native/inlining/inlining.cpp
705
+ new file mode 100644
706
+ index 00000000000000..0cd436833efd05
707
+ --- /dev/null
708
+ +++ b/src/tests/profiler/native/inlining/inlining.cpp
709
+ @@ -0,0 +1,172 @@
710
+ +// Licensed to the .NET Foundation under one or more agreements.
711
+ +// The .NET Foundation licenses this file to you under the MIT license.
712
+ +
713
+ +#define NOMINMAX
714
+ +
715
+ +#include "inlining.h"
716
+ +#include <iostream>
717
+ +
718
+ +using std::shared_ptr;
719
+ +using std::wcout;
720
+ +using std::endl;
721
+ +using std::atomic;
722
+ +
723
+ +shared_ptr<InliningProfiler> InliningProfiler::s_profiler;
724
+ +
725
+ +#ifndef WIN32
726
+ +#define UINT_PTR_FORMAT "lx"
727
+ +#define PROFILER_STUB __attribute__((visibility("hidden"))) static void STDMETHODCALLTYPE
728
+ +#else // WIN32
729
+ +#define UINT_PTR_FORMAT "llx"
730
+ +#define PROFILER_STUB static void STDMETHODCALLTYPE
731
+ +#endif // WIN32
732
+ +
733
+ +PROFILER_STUB EnterStub(FunctionIDOrClientID functionId, COR_PRF_ELT_INFO eltInfo)
734
+ +{
735
+ + SHUTDOWNGUARD_RETVOID();
736
+ +
737
+ + InliningProfiler::s_profiler->EnterCallback(functionId, eltInfo);
738
+ +}
739
+ +
740
+ +PROFILER_STUB LeaveStub(FunctionIDOrClientID functionId, COR_PRF_ELT_INFO eltInfo)
741
+ +{
742
+ + SHUTDOWNGUARD_RETVOID();
743
+ +
744
+ + InliningProfiler::s_profiler->LeaveCallback(functionId, eltInfo);
745
+ +}
746
+ +
747
+ +PROFILER_STUB TailcallStub(FunctionIDOrClientID functionId, COR_PRF_ELT_INFO eltInfo)
748
+ +{
749
+ + SHUTDOWNGUARD_RETVOID();
750
+ +
751
+ + InliningProfiler::s_profiler->TailcallCallback(functionId, eltInfo);
752
+ +}
753
+ +
754
+ +GUID InliningProfiler::GetClsid()
755
+ +{
756
+ + // {DDADC0CB-21C8-4E53-9A6C-7C65EE5800CE}
757
+ + GUID clsid = { 0xDDADC0CB, 0x21C8, 0x4E53, { 0x9A, 0x6C, 0x7C, 0x65, 0xEE, 0x58, 0x00, 0xCE } };
758
+ + return clsid;
759
+ +}
760
+ +
761
+ +HRESULT InliningProfiler::Initialize(IUnknown* pICorProfilerInfoUnk)
762
+ +{
763
+ + Profiler::Initialize(pICorProfilerInfoUnk);
764
+ +
765
+ + HRESULT hr = S_OK;
766
+ + InliningProfiler::s_profiler = shared_ptr<InliningProfiler>(this);
767
+ +
768
+ + if (FAILED(hr = pCorProfilerInfo->SetEventMask2(COR_PRF_MONITOR_ENTERLEAVE
769
+ + | COR_PRF_ENABLE_FUNCTION_ARGS
770
+ + | COR_PRF_ENABLE_FUNCTION_RETVAL
771
+ + | COR_PRF_ENABLE_FRAME_INFO
772
+ + | COR_PRF_MONITOR_JIT_COMPILATION,
773
+ + 0)))
774
+ + {
775
+ + wcout << L"FAIL: IpCorProfilerInfo::SetEventMask2() failed hr=0x" << std::hex << hr << endl;
776
+ + _failures++;
777
+ + return hr;
778
+ + }
779
+ +
780
+ + hr = this->pCorProfilerInfo->SetEnterLeaveFunctionHooks3WithInfo(EnterStub, LeaveStub, TailcallStub);
781
+ + if (hr != S_OK)
782
+ + {
783
+ + wcout << L"SetEnterLeaveFunctionHooks3WithInfo failed with hr=0x" << std::hex << hr << endl;
784
+ + _failures++;
785
+ + return hr;
786
+ + }
787
+ +
788
+ + return S_OK;
789
+ +}
790
+ +
791
+ +HRESULT InliningProfiler::Shutdown()
792
+ +{
793
+ + Profiler::Shutdown();
794
+ +
795
+ + if (_failures == 0 && _sawInlineeCall)
796
+ + {
797
+ + wcout << L"PROFILER TEST PASSES" << endl;
798
+ + }
799
+ + else
800
+ + {
801
+ + wcout << L"TEST FAILED _failures=" << _failures.load()
802
+ + << L"_sawInlineeCall=" << _sawInlineeCall << endl;
803
+ + }
804
+ +
805
+ + return S_OK;
806
+ +}
807
+ +
808
+ +HRESULT STDMETHODCALLTYPE InliningProfiler::EnterCallback(FunctionIDOrClientID functionIdOrClientID, COR_PRF_ELT_INFO eltInfo)
809
+ +{
810
+ + String functionName = GetFunctionIDName(functionIdOrClientID.functionID);
811
+ + if (functionName == WCHAR("Inlining"))
812
+ + {
813
+ + _inInlining = true;
814
+ + }
815
+ + else if (functionName == WCHAR("BlockInlining"))
816
+ + {
817
+ + _inBlockInlining = true;
818
+ + }
819
+ + else if (functionName == WCHAR("NoResponse"))
820
+ + {
821
+ + _inNoResponse = true;
822
+ + }
823
+ + else if (functionName == WCHAR("Inlinee"))
824
+ + {
825
+ + if (_inInlining || _inNoResponse)
826
+ + {
827
+ + _failures++;
828
+ + wcout << L"Saw Inlinee as a real method call instead of inlined." << endl;
829
+ + }
830
+ +
831
+ + if (_inBlockInlining)
832
+ + {
833
+ + _sawInlineeCall = true;
834
+ + }
835
+ + }
836
+ +
837
+ + return S_OK;
838
+ +}
839
+ +
840
+ +HRESULT STDMETHODCALLTYPE InliningProfiler::LeaveCallback(FunctionIDOrClientID functionIdOrClientID, COR_PRF_ELT_INFO eltInfo)
841
+ +{
842
+ + String functionName = GetFunctionIDName(functionIdOrClientID.functionID);
843
+ + if (functionName == WCHAR("Inlining"))
844
+ + {
845
+ + _inInlining = false;
846
+ + }
847
+ + else if (functionName == WCHAR("BlockInlining"))
848
+ + {
849
+ + _inBlockInlining = false;
850
+ + }
851
+ + else if (functionName == WCHAR("NoResponse"))
852
+ + {
853
+ + _inNoResponse = false;
854
+ + }
855
+ +
856
+ + return S_OK;
857
+ +}
858
+ +
859
+ +HRESULT STDMETHODCALLTYPE InliningProfiler::TailcallCallback(FunctionIDOrClientID functionIdOrClientID, COR_PRF_ELT_INFO eltInfo)
860
+ +{
861
+ + return S_OK;
862
+ +}
863
+ +
864
+ +HRESULT STDMETHODCALLTYPE InliningProfiler::JITInlining(FunctionID callerId, FunctionID calleeId, BOOL* pfShouldInline)
865
+ +{
866
+ + String inlineeName = GetFunctionIDName(calleeId);
867
+ + if (inlineeName == WCHAR("Inlinee"))
868
+ + {
869
+ + String inlinerName = GetFunctionIDName(callerId);
870
+ + if (inlinerName == WCHAR("Inlining"))
871
+ + {
872
+ + *pfShouldInline = TRUE;
873
+ + }
874
+ + else if (inlinerName == WCHAR("BlockInlining"))
875
+ + {
876
+ + *pfShouldInline = FALSE;
877
+ + }
878
+ + }
879
+ +
880
+ + return S_OK;
881
+ +}
882
+ diff --git a/src/tests/profiler/native/inlining/inlining.h b/src/tests/profiler/native/inlining/inlining.h
883
+ new file mode 100644
884
+ index 00000000000000..4b1b8752e3ec56
885
+ --- /dev/null
886
+ +++ b/src/tests/profiler/native/inlining/inlining.h
887
+ @@ -0,0 +1,38 @@
888
+ +// Licensed to the .NET Foundation under one or more agreements.
889
+ +// The .NET Foundation licenses this file to you under the MIT license.
890
+ +
891
+ +#pragma once
892
+ +
893
+ +#include "../profiler.h"
894
+ +#include <memory>
895
+ +
896
+ +class InliningProfiler : public Profiler
897
+ +{
898
+ +public:
899
+ + static std::shared_ptr<InliningProfiler> s_profiler;
900
+ +
901
+ + InliningProfiler() :
902
+ + Profiler(),
903
+ + _failures(0),
904
+ + _inInlining(false),
905
+ + _inBlockInlining(false),
906
+ + _inNoResponse(false)
907
+ + {
908
+ + }
909
+ +
910
+ + static GUID GetClsid();
911
+ + virtual HRESULT STDMETHODCALLTYPE Initialize(IUnknown* pICorProfilerInfoUnk);
912
+ + virtual HRESULT STDMETHODCALLTYPE Shutdown();
913
+ + virtual HRESULT STDMETHODCALLTYPE JITInlining(FunctionID callerId, FunctionID calleeId, BOOL* pfShouldInline);
914
+ +
915
+ + HRESULT STDMETHODCALLTYPE EnterCallback(FunctionIDOrClientID functionId, COR_PRF_ELT_INFO eltInfo);
916
+ + HRESULT STDMETHODCALLTYPE LeaveCallback(FunctionIDOrClientID functionId, COR_PRF_ELT_INFO eltInfo);
917
+ + HRESULT STDMETHODCALLTYPE TailcallCallback(FunctionIDOrClientID functionId, COR_PRF_ELT_INFO eltInfo);
918
+ +
919
+ +private:
920
+ + std::atomic<int> _failures;
921
+ + bool _inInlining;
922
+ + bool _inBlockInlining;
923
+ + bool _inNoResponse;
924
+ + bool _sawInlineeCall;
925
+ +};
926
+ diff --git a/src/tests/profiler/unittest/inlining.cs b/src/tests/profiler/unittest/inlining.cs
927
+ new file mode 100644
928
+ index 00000000000000..84b9cdb85f5e45
929
+ --- /dev/null
930
+ +++ b/src/tests/profiler/unittest/inlining.cs
931
+ @@ -0,0 +1,66 @@
932
+ +// Licensed to the .NET Foundation under one or more agreements.
933
+ +// The .NET Foundation licenses this file to you under the MIT license.
934
+ +
935
+ +using System;
936
+ +using System.IO;
937
+ +using System.Runtime.CompilerServices;
938
+ +using System.Runtime.InteropServices;
939
+ +using System.Threading;
940
+ +
941
+ +namespace Profiler.Tests
942
+ +{
943
+ + class InliningTest
944
+ + {
945
+ + private static readonly Guid InliningGuid = new Guid("DDADC0CB-21C8-4E53-9A6C-7C65EE5800CE");
946
+ +
947
+ + [MethodImpl(MethodImplOptions.AggressiveInlining)]
948
+ + public static int Inlinee()
949
+ + {
950
+ + Random rand = new Random();
951
+ + return rand.Next();
952
+ + }
953
+ +
954
+ + [MethodImpl(MethodImplOptions.NoInlining)]
955
+ + public static void Inlining()
956
+ + {
957
+ + int x = Inlinee();
958
+ + Console.WriteLine($"Inlining, x={x}");
959
+ + }
960
+ +
961
+ + [MethodImpl(MethodImplOptions.NoInlining)]
962
+ + public static void BlockInlining()
963
+ + {
964
+ + int x = Inlinee();
965
+ + Console.WriteLine($"BlockInlining, x={x}");
966
+ + }
967
+ +
968
+ + [MethodImpl(MethodImplOptions.NoInlining)]
969
+ + public static void NoResponse()
970
+ + {
971
+ + int x = Inlinee();
972
+ + Console.WriteLine($"NoResponse, x={x}");
973
+ + }
974
+ +
975
+ + public static int RunTest(string[] args)
976
+ + {
977
+ + Inlining();
978
+ + BlockInlining();
979
+ + NoResponse();
980
+ +
981
+ + return 100;
982
+ + }
983
+ +
984
+ + public static int Main(string[] args)
985
+ + {
986
+ + if (args.Length > 0 && args[0].Equals("RunTest", StringComparison.OrdinalIgnoreCase))
987
+ + {
988
+ + return RunTest(args);
989
+ + }
990
+ +
991
+ + return ProfilerTestRunner.Run(profileePath: System.Reflection.Assembly.GetExecutingAssembly().Location,
992
+ + testName: "UnitTestInlining",
993
+ + profilerClsid: InliningGuid,
994
+ + profileeOptions: ProfileeOptions.OptimizationSensitive);
995
+ + }
996
+ + }
997
+ +}
998
+ diff --git a/src/tests/profiler/unittest/inlining.csproj b/src/tests/profiler/unittest/inlining.csproj
999
+ new file mode 100644
1000
+ index 00000000000000..b2fbdc913b04a2
1001
+ --- /dev/null
1002
+ +++ b/src/tests/profiler/unittest/inlining.csproj
1003
+ @@ -0,0 +1,23 @@
1004
+ +<Project Sdk="Microsoft.NET.Sdk">
1005
+ + <PropertyGroup>
1006
+ + <TargetFrameworkIdentifier>.NETCoreApp</TargetFrameworkIdentifier>
1007
+ + <OutputType>exe</OutputType>
1008
+ + <CLRTestKind>BuildAndRun</CLRTestKind>
1009
+ + <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1010
+ + <CLRTestPriority>0</CLRTestPriority>
1011
+ + <Optimize>true</Optimize>
1012
+ + <!-- This test provides no interesting scenarios for GCStress -->
1013
+ + <GCStressIncompatible>true</GCStressIncompatible>
1014
+ + <!-- The test launches a secondary process and process launch creates
1015
+ + an infinite event loop in the SocketAsyncEngine on Linux. Since
1016
+ + runincontext loads even framework assemblies into the unloadable
1017
+ + context, locals in this loop prevent unloading -->
1018
+ + <UnloadabilityIncompatible>true</UnloadabilityIncompatible>
1019
+ + </PropertyGroup>
1020
+ + <ItemGroup>
1021
+ + <Compile Include="$(MSBuildProjectName).cs" />
1022
+ + <ProjectReference Include="$(TestSourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
1023
+ + <ProjectReference Include="../common/profiler_common.csproj" />
1024
+ + <ProjectReference Include="$(MSBuildThisFileDirectory)/../native/CMakeLists.txt" />
1025
+ + </ItemGroup>
1026
+ +</Project>
1027
+ diff --git a/src/workloads/workloads.csproj b/src/workloads/workloads.csproj
1028
+ index c1f6b4bb419ff2..f64d641604674d 100644
1029
+ --- a/src/workloads/workloads.csproj
1030
+ +++ b/src/workloads/workloads.csproj
1031
+ @@ -48,7 +48,7 @@
1032
+
1033
+ <Import Sdk="Microsoft.NET.Sdk" Project="Sdk.targets" />
1034
+
1035
+ - <Target Name="Build" DependsOnTargets="GenerateVersions">
1036
+ + <Target Name="Build" DependsOnTargets="GetAssemblyVersion;_GetVersionProps;_GenerateMsiVersionString">
1037
+ <ItemGroup>
1038
+ <!-- Overrides for Visual Studio setup generation. If the workload definition IDs change,
1039
+ these must be updated. -->
1040
+ @@ -106,14 +106,6 @@
1041
+ <ManifestPackages Include="$(PackageSource)Microsoft.NET.Workload.Mono.ToolChain.Manifest-*.nupkg" />
1042
+ </ItemGroup>
1043
+
1044
+ - <GenerateMsiVersion
1045
+ - Major="$([System.Version]::Parse('$(SDKBundleVersion)').Major)"
1046
+ - Minor="$([System.Version]::Parse('$(SDKBundleVersion)').Minor)"
1047
+ - Patch="$([System.Version]::Parse('$(SDKBundleVersion)').Build)"
1048
+ - BuildNumber="$([System.Version]::Parse('$(SDKBundleVersion)').Revision)" >
1049
+ - <Output TaskParameter="MsiVersion" PropertyName="MsiVersion" />
1050
+ - </GenerateMsiVersion>
1051
+ -
1052
+ <GenerateManifestMsi
1053
+ IntermediateBaseOutputPath="$(IntermediateOutputPath)"
1054
+ OutputPath="$(OutputPath)"
1055
+ @@ -195,28 +187,38 @@
1056
+ <MSBuild Projects="@(VisualStudioManifestProjects)" BuildInParallel="true" Properties="SwixBuildTargets=$(SwixBuildTargets);ManifestOutputPath=$(VersionedVisualStudioSetupInsertionPath);OutputPath=$(VersionedVisualStudioSetupInsertionPath)" />
1057
+ </Target>
1058
+
1059
+ - <Target Name="GenerateVersions" DependsOnTargets="GetAssemblyVersion">
1060
+ - <Exec Command="git rev-list --count HEAD"
1061
+ - ConsoleToMSBuild="true"
1062
+ - Condition=" '$(GitCommitCount)' == '' ">
1063
+ - <Output TaskParameter="ConsoleOutput" PropertyName="GitCommitCount" />
1064
+ - </Exec>
1065
+ -
1066
+ - <Error Condition=" '$(OfficialBuild)' == 'true' And '$(_PatchNumber)' == '' "
1067
+ - Text="_PatchNumber should not be empty in an official build. Check if there were changes in Arcade." />
1068
+ + <Target Name="_GetVersionProps">
1069
+ + <PropertyGroup>
1070
+ + <_MajorVersion>$([System.Version]::Parse('$(AssemblyVersion)').Major)</_MajorVersion>
1071
+ + <_MinorVersion>$([System.Version]::Parse('$(AssemblyVersion)').Minor)</_MinorVersion>
1072
+ + <_PatchVersion>$([System.Version]::Parse('$(AssemblyVersion)').Build)</_PatchVersion>
1073
+ + <_BuildNumber>$([System.Version]::Parse('$(AssemblyVersion)').Revision)</_BuildNumber>
1074
+ + </PropertyGroup>
1075
+ + </Target>
1076
+
1077
+ + <Target Name="_GenerateMsiVersionString">
1078
+ <PropertyGroup>
1079
+ - <GitCommitCount>$(GitCommitCount.PadLeft(6,'0'))</GitCommitCount>
1080
+ + <VersionPadding Condition="'$(VersionPadding)'==''">5</VersionPadding>
1081
+ + <!-- Using the following default comparison date will produce versions that align with our internal build system. -->
1082
+ + <VersionComparisonDate Condition="'$(VersionComparisonDate)'==''">1996-04-01</VersionComparisonDate>
1083
+ + </PropertyGroup>
1084
+
1085
+ - <!-- This number comes from arcade and combines the date based build number id and the revision (incremental number per day) -->
1086
+ - <CombinedBuildNumberAndRevision>$(_PatchNumber)</CombinedBuildNumberAndRevision>
1087
+ - <!-- Fallback to commit count when patch number is not set. This happens only during CI. -->
1088
+ - <CombinedBuildNumberAndRevision Condition=" '$(CombinedBuildNumberAndRevision)' == '' ">$(GitCommitCount)</CombinedBuildNumberAndRevision>
1089
+ + <GenerateCurrentVersion
1090
+ + SeedDate="$([System.DateTime]::Now.ToString(yyyy-MM-dd))"
1091
+ + OfficialBuildId="$(OfficialBuildId)"
1092
+ + ComparisonDate="$(VersionComparisonDate)"
1093
+ + Padding="$(VersionPadding)">
1094
+ + <Output PropertyName="BuildNumberMajor" TaskParameter="GeneratedVersion" />
1095
+ + <Output PropertyName="BuildNumberMinor" TaskParameter="GeneratedRevision" />
1096
+ + </GenerateCurrentVersion>
1097
+
1098
+ - <!-- This number comes from arcade and combines the date based build number id and the revision (incremental number per day) -->
1099
+ - <SDKBundleVersion>$(FileVersion)</SDKBundleVersion>
1100
+ - <!-- Fallback to commit count when patch number is not set. This happens only during CI. -->
1101
+ - <SDKBundleVersion Condition=" '$(SDKBundleVersion)' == '' ">$(VersionPrefix).$(CombinedBuildNumberAndRevision)</SDKBundleVersion>
1102
+ - </PropertyGroup>
1103
+ + <GenerateMsiVersion
1104
+ + Major="$(_MajorVersion)"
1105
+ + Minor="$(_MinorVersion)"
1106
+ + Patch="$(_PatchVersion)"
1107
+ + BuildNumberMajor="$(BuildNumberMajor)"
1108
+ + BuildNumberMinor="$(BuildNumberMinor)">
1109
+ + <Output TaskParameter="MsiVersion" PropertyName="MsiVersion" />
1110
+ + </GenerateMsiVersion>
1111
+ </Target>
1112
+ </Project>
data/raw_sample/diffs/00040d352d668fc001dae7cf6b9c31a2529ad941.diff ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/GenerateWasmBootJson.cs b/src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/GenerateWasmBootJson.cs
2
+ index c5589c9781cea6..0e8dc24e3e23a4 100644
3
+ --- a/src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/GenerateWasmBootJson.cs
4
+ +++ b/src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/GenerateWasmBootJson.cs
5
+ @@ -196,7 +196,7 @@ public void WriteBootJson(Stream output, string entryAssemblyName)
6
+ string.Equals(assetTraitValue, "native", StringComparison.OrdinalIgnoreCase))
7
+ {
8
+ Log.LogMessage(MessageImportance.Low, "Candidate '{0}' is defined as a native application resource.", resource.ItemSpec);
9
+ - if (fileName.StartsWith("dotnet.native", StringComparison.OrdinalIgnoreCase) && string.Equals(fileExtension, ".wasm", StringComparison.OrdinalIgnoreCase))
10
+ + if (fileName.StartsWith("dotnet", StringComparison.OrdinalIgnoreCase) && string.Equals(fileExtension, ".wasm", StringComparison.OrdinalIgnoreCase))
11
+ {
12
+ behavior = "dotnetwasm";
13
+ }
data/raw_sample/prs/pr-1.json ADDED
@@ -0,0 +1,223 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 1,
3
+ "title": "WIP: repo consolidation scouting kick-off - make clr build locally on Windows",
4
+ "body": "This is my first contribution to the scouting to let other people\r\nsee the first problems I'm hitting as I believe them to be mostly\r\ngeneral. With this small change I now have at least the native part\r\nof CoreCLR build running - I'm not yet past that so then I'll see\r\nwhat other problems I hit when building the managed components,\r\nbuilding and running tests.\r\n\r\nAs you can easily see, the first (and so far the only) problem is\r\nthe split of the two roots (subrepo root vs. repo root) making the\r\nbuild script fail when trying to locate \"msbuild.ps1\" which is now\r\nunder a repo-global eng folder. I can imagine it may be undesirable\r\nto query GIT in the build script; in this particular case we have\r\nmultiple alternate ways to proceed (keep the duplicates of\r\nmsbuild.ps1? autodetecting the root based on some well-known file?).\r\n\r\nThanks\r\n\r\nTomas",
5
+ "createdAt": "2019-10-15T17:51:16Z",
6
+ "closedAt": "2019-10-29T16:41:31Z",
7
+ "mergedAt": null,
8
+ "state": "CLOSED",
9
+ "author": {
10
+ "login": "trylek"
11
+ },
12
+ "labels": {
13
+ "nodes": []
14
+ },
15
+ "headRefName": "BuildCoreCLR",
16
+ "additions": 2,
17
+ "deletions": 2,
18
+ "changedFiles": 2,
19
+ "comments": {
20
+ "totalCount": 19,
21
+ "nodes": [
22
+ {
23
+ "body": "I'm seeing a similar issue in core-setup.",
24
+ "createdAt": "2019-10-15T17:53:02Z"
25
+ },
26
+ {
27
+ "body": "Can you use the `RepositoryEngineeringDir` variable?",
28
+ "createdAt": "2019-10-15T17:58:16Z"
29
+ },
30
+ {
31
+ "body": "@ViktorHofer this is just to find the `eng/common` folder before even invoking the scripts.",
32
+ "createdAt": "2019-10-15T18:00:35Z"
33
+ },
34
+ {
35
+ "body": "Hmm, where is this supposed to be coming from? I'm normally building the repo from the Windows prompt - who is going to set the variable there? Or are you saying we should go through some central script that would set the variable? That would probably solve the problem but we're back to chicken-egg problem w.r.t. how to locate such a global script? ",
36
+ "createdAt": "2019-10-15T18:01:22Z"
37
+ },
38
+ {
39
+ "body": "Arcade defines that property, so you would get it if you import the Arcade SDK. Are you saying that at this point you don't have Arcade imported yet?\r\n\r\nIf that's the case we can probably manually define it in a runtime root's Directory.Build.props file which is then imported by the repos.",
40
+ "createdAt": "2019-10-15T18:02:27Z"
41
+ },
42
+ {
43
+ "body": "In fact, that might be one of the solutions - we would check in a special script at the root of each of the repos being merged, that would set the path to the repo root. In the source repos that would equal the repo root while we would massage it during the port to point to the global root.",
44
+ "createdAt": "2019-10-15T18:03:08Z"
45
+ },
46
+ {
47
+ "body": "https://github.com/dotnet/arcade/blob/e0112fe2f1fd7f6db08b228db98f22225f82267b/src/Microsoft.DotNet.Arcade.Sdk/tools/RepoLayout.props#L22-L65",
48
+ "createdAt": "2019-10-15T18:04:18Z"
49
+ },
50
+ {
51
+ "body": "@ViktorHofer we haven't even found MSBuild yet, let alone invoked a build with the Arcade SDK at this point.\r\n\r\nI encountered the same issue in core-setup's `build.cmd` just to find Arcade's `build.ps1`.",
52
+ "createdAt": "2019-10-15T18:04:22Z"
53
+ },
54
+ {
55
+ "body": "OK got it.",
56
+ "createdAt": "2019-10-15T18:04:49Z"
57
+ },
58
+ {
59
+ "body": "I am afraid that we're still on the chicken-egg plan as in CoreCLR running \"msbuild.ps1\" is exactly the thing that requires locating the repo root.",
60
+ "createdAt": "2019-10-15T18:06:06Z"
61
+ },
62
+ {
63
+ "body": "OK there are multiple options here. \r\n\r\n1. Importing a cmd/sh script that defines those paths that lives either in the parent (src) directory or parent-parent (repo root) dir?\r\n2. Hardcoding the relative path to the repo root (../../)\r\n3. Using git to resolve to the repo-root\r\n\r\nOther ideas?",
64
+ "createdAt": "2019-10-15T18:08:39Z"
65
+ },
66
+ {
67
+ "body": "Circling back to my suggestion to \"check in a script at the root of each repo being merged\", that may be also usable for other things like exporting an environment variable declaring whether we're in the split or merged repo.",
68
+ "createdAt": "2019-10-15T18:08:50Z"
69
+ },
70
+ {
71
+ "body": "[not sure what kind of script that should be, ideally something that doesn't require two versions for Windows vs. non-Windows]",
72
+ "createdAt": "2019-10-15T18:09:27Z"
73
+ },
74
+ {
75
+ "body": "I think I like Jared's suggestion to ideally make most of the changes in the original repos so that we can arbitrarily repeat this process. So I think hard-coding ..\\.. is not ideal unless it comes from a script the porting process will create. I leave it to others to chime in as to whether it's legal to query git or not. I don't think it's strictly illegal, I think that the BuildVersion script is doing that already, and both in the lab and locally we always have a legal GIT repository available whenever we run the build script. Considering the dichotomy is supposed to be temporary, using the GIT magic may be a reasonable workaround.",
76
+ "createdAt": "2019-10-15T18:12:48Z"
77
+ },
78
+ {
79
+ "body": "I agree with you. We should make most changes in the original repository. Just as an FYI, in cases where this isn't possible, you can create a GIT patch and place it here: https://github.com/dotnet/consolidation/tree/master/patches/coreclr",
80
+ "createdAt": "2019-10-15T18:16:22Z"
81
+ },
82
+ {
83
+ "body": "Conceptually, if we decide to emit / special case some scripts in the subrepos to interface the subrepos to their \"embedding\" within either the split or consolidated repo, we might also want to introduce similar per-subrepo interfacing YAML files under eng somewhere, going back to Jared's proposal for encoding the script / source location details via variables.",
84
+ "createdAt": "2019-10-15T18:16:59Z"
85
+ },
86
+ {
87
+ "body": "Ahh, thanks Viktor for making me aware of the patch list, that's very nice!",
88
+ "createdAt": "2019-10-15T18:19:54Z"
89
+ },
90
+ {
91
+ "body": "OK, so if I may try to divide the problem space, I believe that we're basically in agreement that we need some environment variable representing the \"main root repo\" that translates to the normal thing for the existing repos like CoreCLR and to the root of the consolidated repo in the merged case. In such case I can continue making further progress using my temporary git query hack while we discuss how to tackle this cleanly as there seem to be several available options.",
92
+ "createdAt": "2019-10-15T18:24:10Z"
93
+ },
94
+ {
95
+ "body": "Source-build does have a requirement to be able to build without a valid Git repo since we package sources and tools into a tarball without the accompanying Git repo. We could work with an environment variable override or similar though.",
96
+ "createdAt": "2019-10-15T18:29:33Z"
97
+ }
98
+ ]
99
+ },
100
+ "reviewThreads": {
101
+ "totalCount": 4,
102
+ "nodes": [
103
+ {
104
+ "comments": {
105
+ "nodes": [
106
+ {
107
+ "path": "NuGet.config",
108
+ "diffHunk": "@@ -14,6 +14,7 @@\n <add key=\"dotnet-core\" value=\"https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json\" />\n <add key=\"dotnet-coreclr\" value=\"https://dotnetfeed.blob.core.windows.net/dotnet-coreclr/index.json\" />\n <add key=\"dotnet-windowsdesktop\" value=\"https://dotnetfeed.blob.core.windows.net/dotnet-windowsdesktop/index.json\" />\n+ <add key=\"myget.org dotnet-core\" value=\"https://dotnet.myget.org/F/dotnet-core/api/v3/index.json\" />",
109
+ "body": "@trylek I think we should try to get rid of this feed in coreclr before we consolidate as myget is unreliable. What assets are you currently pushing there?",
110
+ "createdAt": "2019-10-17T10:09:05Z"
111
+ },
112
+ {
113
+ "path": "NuGet.config",
114
+ "diffHunk": "@@ -14,6 +14,7 @@\n <add key=\"dotnet-core\" value=\"https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json\" />\n <add key=\"dotnet-coreclr\" value=\"https://dotnetfeed.blob.core.windows.net/dotnet-coreclr/index.json\" />\n <add key=\"dotnet-windowsdesktop\" value=\"https://dotnetfeed.blob.core.windows.net/dotnet-windowsdesktop/index.json\" />\n+ <add key=\"myget.org dotnet-core\" value=\"https://dotnet.myget.org/F/dotnet-core/api/v3/index.json\" />",
115
+ "body": "I believe this is only needed by crossgen2 and R2RDump - without the additional feed they cannot find the [old] System.CommandLine parser package. I have already switched SuperIlc over to use the new parser and it would be probably feasible to do the same for the two other apps if necessary.",
116
+ "createdAt": "2019-10-17T14:12:39Z"
117
+ },
118
+ {
119
+ "path": "NuGet.config",
120
+ "diffHunk": "@@ -14,6 +14,7 @@\n <add key=\"dotnet-core\" value=\"https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json\" />\n <add key=\"dotnet-coreclr\" value=\"https://dotnetfeed.blob.core.windows.net/dotnet-coreclr/index.json\" />\n <add key=\"dotnet-windowsdesktop\" value=\"https://dotnetfeed.blob.core.windows.net/dotnet-windowsdesktop/index.json\" />\n+ <add key=\"myget.org dotnet-core\" value=\"https://dotnet.myget.org/F/dotnet-core/api/v3/index.json\" />",
121
+ "body": "IIRC there was some work in the dotnet/jitutils repo that was waiting on R2RDump to move off the old System.CommandLine, so there'd be a number of people happy about removing old System.CommandLine.",
122
+ "createdAt": "2019-10-17T15:06:51Z"
123
+ },
124
+ {
125
+ "path": "NuGet.config",
126
+ "diffHunk": "@@ -14,6 +14,7 @@\n <add key=\"dotnet-core\" value=\"https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json\" />\n <add key=\"dotnet-coreclr\" value=\"https://dotnetfeed.blob.core.windows.net/dotnet-coreclr/index.json\" />\n <add key=\"dotnet-windowsdesktop\" value=\"https://dotnetfeed.blob.core.windows.net/dotnet-windowsdesktop/index.json\" />\n+ <add key=\"myget.org dotnet-core\" value=\"https://dotnet.myget.org/F/dotnet-core/api/v3/index.json\" />",
127
+ "body": "myget is unreliable but I wouldn't block consolidation on it. \r\n\r\nMy mental model for should or shouldn't we require this before consolidation is roughly this (assuming it's not a functional blocker);\r\n\r\n> Could we fix this in the consolidated repository in less than one business day. If so don't block consolidation on it because it's something we could iterate on pretty fast. \r\n\r\n",
128
+ "createdAt": "2019-10-21T16:57:31Z"
129
+ }
130
+ ]
131
+ }
132
+ },
133
+ {
134
+ "comments": {
135
+ "nodes": [
136
+ {
137
+ "path": "eng/Tools.props",
138
+ "diffHunk": "@@ -0,0 +1,15 @@\n+<?xml version=\"1.0\" encoding=\"utf-8\"?>\n+<Project>\n+ <PropertyGroup>\n+ <RestoreSources Condition=\"'$(AdditionalRestoreSources)' != ''\">",
139
+ "body": "AFAIK, RestoreSources aren't honored by Arcade anymore.",
140
+ "createdAt": "2019-10-17T10:09:29Z"
141
+ },
142
+ {
143
+ "path": "eng/Tools.props",
144
+ "diffHunk": "@@ -0,0 +1,15 @@\n+<?xml version=\"1.0\" encoding=\"utf-8\"?>\n+<Project>\n+ <PropertyGroup>\n+ <RestoreSources Condition=\"'$(AdditionalRestoreSources)' != ''\">",
145
+ "body": "I must admit I actually don't know what exactly this file is needed for, I just see that in its absence CoreCLR build seems unable to install \"dotnet.exe\" (dotnet-install) and subsequently pull down some packages needed by the build like Microsoft.DotNet.Build.Tasks.Packaging. Having said that, I fully admit I've never been a Nuget expert so I may be easily misinterpreting the symptome.",
146
+ "createdAt": "2019-10-17T14:14:34Z"
147
+ }
148
+ ]
149
+ }
150
+ },
151
+ {
152
+ "comments": {
153
+ "nodes": [
154
+ {
155
+ "path": "eng/configure-toolset.ps1",
156
+ "diffHunk": "@@ -1,2 +1,12 @@\n+# We depend on a local cli for a number of our buildtool\n+# commands like init-tools so for now we need to disable\n+# using the globally installed dotnet\n+\n+$script:useInstalledDotNetCli = $false\n+\n+# Always use the local repo packages directory instead of\n+# the user's NuGet cache\n+$script:useGlobalNuGetCache = $false",
157
+ "body": "I think we should make sure that coreclr works with the global nuget cache enabled. This is the default for corefx and it would be really sad if we need to go back to the old world with the repo packages dir.",
158
+ "createdAt": "2019-10-17T10:10:44Z"
159
+ },
160
+ {
161
+ "path": "eng/configure-toolset.ps1",
162
+ "diffHunk": "@@ -1,2 +1,12 @@\n+# We depend on a local cli for a number of our buildtool\n+# commands like init-tools so for now we need to disable\n+# using the globally installed dotnet\n+\n+$script:useInstalledDotNetCli = $false\n+\n+# Always use the local repo packages directory instead of\n+# the user's NuGet cache\n+$script:useGlobalNuGetCache = $false",
163
+ "body": "Using the repo package level directory has helped us achieve higher fidelity in our CI. At the moment I believe arcade still uses the global nuget cache as well, but our goal pre-consolidation was to move as much as we could to the repo level nuget cache.",
164
+ "createdAt": "2019-10-17T16:57:11Z"
165
+ },
166
+ {
167
+ "path": "eng/configure-toolset.ps1",
168
+ "diffHunk": "@@ -1,2 +1,12 @@\n+# We depend on a local cli for a number of our buildtool\n+# commands like init-tools so for now we need to disable\n+# using the globally installed dotnet\n+\n+$script:useInstalledDotNetCli = $false\n+\n+# Always use the local repo packages directory instead of\n+# the user's NuGet cache\n+$script:useGlobalNuGetCache = $false",
169
+ "body": "Do you have some data on that? We aren't hitting any issues with using the user global nuget cache locally and the repo package cache in CI (the default behavior in an arcade enabled repo) in corefx.\r\n\r\n> but our goal pre-consolidation was to move as much as we could to the repo level nuget cache\r\n\r\nCan you please elaborate on that? Not sure what you mean.",
170
+ "createdAt": "2019-10-17T17:07:14Z"
171
+ },
172
+ {
173
+ "path": "eng/configure-toolset.ps1",
174
+ "diffHunk": "@@ -1,2 +1,12 @@\n+# We depend on a local cli for a number of our buildtool\n+# commands like init-tools so for now we need to disable\n+# using the globally installed dotnet\n+\n+$script:useInstalledDotNetCli = $false\n+\n+# Always use the local repo packages directory instead of\n+# the user's NuGet cache\n+$script:useGlobalNuGetCache = $false",
175
+ "body": "The issue is that the default global cache is on the home drive. Which for vms is the most expensive and smallest size disk. This equates to a performance problem, for our arm hardware our home disks are extremely small. Helix also consumes most of the home disk, so accidentally filling the disk with the global nuget cache on the main disk used to happen.",
176
+ "createdAt": "2019-10-17T18:47:10Z"
177
+ },
178
+ {
179
+ "path": "eng/configure-toolset.ps1",
180
+ "diffHunk": "@@ -1,2 +1,12 @@\n+# We depend on a local cli for a number of our buildtool\n+# commands like init-tools so for now we need to disable\n+# using the globally installed dotnet\n+\n+$script:useInstalledDotNetCli = $false\n+\n+# Always use the local repo packages directory instead of\n+# the user's NuGet cache\n+$script:useGlobalNuGetCache = $false",
181
+ "body": "As for the comment. It is more of less whet I said. Coreclr’s expectation was to continue to use the non global nuget cache. I think there are still blockers keeping us from migrating away from that plan.",
182
+ "createdAt": "2019-10-17T18:48:21Z"
183
+ },
184
+ {
185
+ "path": "eng/configure-toolset.ps1",
186
+ "diffHunk": "@@ -1,2 +1,12 @@\n+# We depend on a local cli for a number of our buildtool\n+# commands like init-tools so for now we need to disable\n+# using the globally installed dotnet\n+\n+$script:useInstalledDotNetCli = $false\n+\n+# Always use the local repo packages directory instead of\n+# the user's NuGet cache\n+$script:useGlobalNuGetCache = $false",
187
+ "body": "Got it, that makes sense. What I don't understand is why this causes a problem as on CI the user global cache isn't used by default (arcade convention).",
188
+ "createdAt": "2019-10-17T18:48:52Z"
189
+ },
190
+ {
191
+ "path": "eng/configure-toolset.ps1",
192
+ "diffHunk": "@@ -1,2 +1,12 @@\n+# We depend on a local cli for a number of our buildtool\n+# commands like init-tools so for now we need to disable\n+# using the globally installed dotnet\n+\n+$script:useInstalledDotNetCli = $false\n+\n+# Always use the local repo packages directory instead of\n+# the user's NuGet cache\n+$script:useGlobalNuGetCache = $false",
193
+ "body": "https://github.com/dotnet/arcade/blob/90d8a77c53d5f540ebda7a56d8a2e5661657d742/eng/common/tools.sh#L52-L57",
194
+ "createdAt": "2019-10-17T18:51:09Z"
195
+ }
196
+ ]
197
+ }
198
+ },
199
+ {
200
+ "comments": {
201
+ "nodes": [
202
+ {
203
+ "path": "eng/configure-toolset.ps1",
204
+ "diffHunk": "@@ -1,2 +1,12 @@\n+# We depend on a local cli for a number of our buildtool\n+# commands like init-tools so for now we need to disable\n+# using the globally installed dotnet\n+\n+$script:useInstalledDotNetCli = $false",
205
+ "body": "Same for the SDK here. CoreClr isn't using buildtools anymore, why is still required?",
206
+ "createdAt": "2019-10-17T10:11:04Z"
207
+ },
208
+ {
209
+ "path": "eng/configure-toolset.ps1",
210
+ "diffHunk": "@@ -1,2 +1,12 @@\n+# We depend on a local cli for a number of our buildtool\n+# commands like init-tools so for now we need to disable\n+# using the globally installed dotnet\n+\n+$script:useInstalledDotNetCli = $false",
211
+ "body": "This is possibly an artifact of our older hack to support building with arcade and buildtools. I am not familiar exactly with what can be removed.",
212
+ "createdAt": "2019-10-17T16:58:35Z"
213
+ }
214
+ ]
215
+ }
216
+ }
217
+ ]
218
+ },
219
+ "commits": {
220
+ "totalCount": 0,
221
+ "nodes": []
222
+ }
223
+ }
data/raw_sample/prs/pr-10.json ADDED
The diff for this file is too large to render. See raw diff
 
data/raw_sample/prs/pr-100.json ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 100,
3
+ "title": "Remove repo zipping / unzipping",
4
+ "body": "As according to Matt Mitchell performance issues related to\r\nrepeated git checkouts (throttling) have been fixed and Azure\r\npipelines should automatically make sure that all jobs check out\r\nthe same GIT commit, I am removing the previous workaround to\r\nzip the Windows & Linux checkout as an initial step in each\r\npipeline and unzip it in subsequent jobs instead of repeating\r\nthe git checkout.\r\n\r\nThanks\r\n\r\nTomas",
5
+ "createdAt": "2019-11-18T15:50:10Z",
6
+ "closedAt": "2019-11-27T11:35:11Z",
7
+ "mergedAt": null,
8
+ "state": "CLOSED",
9
+ "author": {
10
+ "login": "trylek"
11
+ },
12
+ "labels": {
13
+ "nodes": [
14
+ {
15
+ "name": "area-Infrastructure-coreclr"
16
+ }
17
+ ]
18
+ },
19
+ "headRefName": "RemoveRepoZipUnzip",
20
+ "additions": 3,
21
+ "deletions": 201,
22
+ "changedFiles": 24,
23
+ "comments": {
24
+ "totalCount": 17,
25
+ "nodes": [
26
+ {
27
+ "body": "Fixes: #96 ",
28
+ "createdAt": "2019-11-18T15:57:21Z"
29
+ },
30
+ {
31
+ "body": "AzDO folks say the bug isn't fixed yet so you may get a torn state. The fix is currently in progress. it's probably not too risky to merge this, as most repos are getting this behavior already.",
32
+ "createdAt": "2019-11-18T16:44:44Z"
33
+ },
34
+ {
35
+ "body": "I am conflicted on whether we should take this or not. I think there is little benefit to moving back at the moment.",
36
+ "createdAt": "2019-11-18T16:56:09Z"
37
+ },
38
+ {
39
+ "body": "Mostly about cleanliness and potentially reducing overall PR times. It means you've removed a dependency edge from the build graph.",
40
+ "createdAt": "2019-11-18T17:03:58Z"
41
+ },
42
+ {
43
+ "body": "> AzDO folks say the bug isn't fixed yet so you may get a torn state. The fix is currently in progress. it's probably not too risky to merge this, as most repos are getting this behavior already.\r\n\r\nThey've known about the issue with the checkout ref for a while - so I would keep the workaround with zipping/unzipping (or see another proposal below) until they have the fix ready. Otherwise, you will get strange failures in PRs when a test job fails because someone has commited a test to the repo in the meantime (e.g. that reproduces a jit assertion)\r\n\r\n> Mostly about cleanliness and potentially reducing overall PR times. It means you've removed a dependency edge from the build graph.\r\n\r\nHow about if I port my changes in https://github.com/dotnet/coreclr/pull/27867 to runtimes - so we can gen twice less dependency edges - and have only one checkout job that works for both Windows and non-Windows scenarios",
44
+ "createdAt": "2019-11-18T19:11:09Z"
45
+ },
46
+ {
47
+ "body": "Do you have perf numbers how long uploading and downloading (from AzDO) of the compressed repository takes?",
48
+ "createdAt": "2019-11-18T19:12:46Z"
49
+ },
50
+ {
51
+ "body": "> Do you have perf numbers how long uploading and downloading (from AzDO) of the compressed repository takes?\r\n\r\nI have only one measurement https://dev.azure.com/dnceng/public/_build/results?buildId=427792 with git bundles (which is obviously not enough):\r\n* cloning from GitHub took 1m22s (on macOS agent)\r\n* creation of the bundle took 6s\r\n* upload took 13s \r\n* download steps took from 6-11s (depending on the agent)\r\n* cloning repo from the bundle takes from 7s (on macOS agent) up to 1m40s (on NetCorePublic-Pool agent)\r\n\r\n",
52
+ "createdAt": "2019-11-18T19:22:19Z"
53
+ },
54
+ {
55
+ "body": "> The fix is currently in progress\r\n\r\n@mmitche do you have the internal link to the tracking issue?",
56
+ "createdAt": "2019-11-18T19:25:20Z"
57
+ },
58
+ {
59
+ "body": "There is one more approach we can take:\r\n\r\n* Checkout directly from GitHub during build job - this way we remove common dependency edge [Build] -> [Checkout]\r\n* Then create a git bundle based on the commit fetched in a build job and publish the bundle as artifact\r\n* Download the bundle during test job instead of cloning from GitHub\r\n\r\nThis way we can remove a common dependency **and** make sure that the tests are built based on the same commit that product was built on.",
60
+ "createdAt": "2019-11-18T19:26:31Z"
61
+ },
62
+ {
63
+ "body": "> The fix is currently in progress\r\n> \r\n> @mmitche do you have the internal link to the tracking issue?\r\n\r\nWe reported this issue to the AzDO team with help from @chcosta. Chris do you happen to know the tracking issue?",
64
+ "createdAt": "2019-11-18T19:29:55Z"
65
+ },
66
+ {
67
+ "body": "https://dev.azure.com/mseng/AzureDevOps/_workitems/edit/1529338",
68
+ "createdAt": "2019-11-18T19:31:10Z"
69
+ },
70
+ {
71
+ "body": "We're tracking with https://dev.azure.com/dnceng/internal/_queries/edit/152 which links to [AzDo's work item](https://mseng.visualstudio.com/AzureDevOps/_workitems/edit/1529338)",
72
+ "createdAt": "2019-11-18T19:32:23Z"
73
+ },
74
+ {
75
+ "body": "As concerns perf, I usually saw GIT checkout take about 30~60 seconds on both Linux and Windows; downloading and unzipping of the zipped repo takes about 40 seconds on Linux / Mac and about 60 seconds on Windows. For now I would assume Egor's change to be the easiest to take as he already has it working and it maintains commit stability (in fact it even improves it by removing a potential difference between the Windows and Linux checkout).",
76
+ "createdAt": "2019-11-18T20:28:12Z"
77
+ },
78
+ {
79
+ "body": "> As concerns perf, I usually saw GIT checkout take about 30~60 seconds on both Linux and Windows; downloading and unzipping of the zipped repo takes about 40 seconds on Linux / Mac and about 60 seconds on Windows. For now I would assume Egor's change to be the easiest to take as he already has it working and it maintains commit stability (in fact it even improves it by removing a potential difference between the Windows and Linux checkout).\r\n\r\nThe downside is that you have the setup + teardown and queuing of another leg we can be signfiicant (e.g. parallelism). Anyway, I think we should fix this once AzDO confirms they have the fix for the checkout sha in place.",
80
+ "createdAt": "2019-11-18T21:08:34Z"
81
+ },
82
+ {
83
+ "body": "I agree with @mmitche here but I would just keep the PR open until this is fixed on the AzDO side. I'm following the tracking issue and will comment here as soon as the fix landed.",
84
+ "createdAt": "2019-11-19T10:42:43Z"
85
+ },
86
+ {
87
+ "body": "@trylek let's close this until we have the fix on AzDO ready. This will probably take 4-6 weeks.",
88
+ "createdAt": "2019-11-27T11:35:11Z"
89
+ },
90
+ {
91
+ "body": "The AzDO change is now implemented but probably will take a few weeks till being rolled out. I will keep you updated.",
92
+ "createdAt": "2019-12-05T16:17:58Z"
93
+ }
94
+ ]
95
+ },
96
+ "reviewThreads": {
97
+ "totalCount": 1,
98
+ "nodes": [
99
+ {
100
+ "comments": {
101
+ "nodes": [
102
+ {
103
+ "path": "eng/pipelines/coreclr/templates/xplat-job.yml",
104
+ "diffHunk": "@@ -164,20 +155,8 @@ jobs:\n - ${{insert}}: ${{ variable }}\n \n steps:\n- - checkout: none\n+ - checkout: self",
105
+ "body": "Do you actually need the checkout step here? Except the clean eq true, this is the default. We don't clean in the Libraries ones so I don't think that's necessary.",
106
+ "createdAt": "2019-11-18T16:43:42Z"
107
+ },
108
+ {
109
+ "path": "eng/pipelines/coreclr/templates/xplat-job.yml",
110
+ "diffHunk": "@@ -164,20 +155,8 @@ jobs:\n - ${{insert}}: ${{ variable }}\n \n steps:\n- - checkout: none\n+ - checkout: self",
111
+ "body": "Just saw that you are also specifying the fetchDepth here. Then it makes sense to keep it here.",
112
+ "createdAt": "2019-11-18T16:44:15Z"
113
+ },
114
+ {
115
+ "path": "eng/pipelines/coreclr/templates/xplat-job.yml",
116
+ "diffHunk": "@@ -164,20 +155,8 @@ jobs:\n - ${{insert}}: ${{ variable }}\n \n steps:\n- - checkout: none\n+ - checkout: self",
117
+ "body": "Still my question would be, do we need cleaning enabled?",
118
+ "createdAt": "2019-11-18T16:45:38Z"
119
+ }
120
+ ]
121
+ }
122
+ }
123
+ ]
124
+ },
125
+ "commits": {
126
+ "totalCount": 1,
127
+ "nodes": [
128
+ {
129
+ "commit": {
130
+ "oid": "23ae599fe2f44f9be3d24e0223240d25c21ee3a4",
131
+ "message": "Remove repo zipping / unzipping\n\nAs according to Matt Mitchell performance issues related to\nrepeated git checkouts (throttling) have been fixed and Azure\npipelines should automatically make sure that all jobs check out\nthe same GIT commit, I am removing the previous workaround to\nzip the Windows & Linux checkout as an initial step in each\npipeline and unzip it in subsequent jobs instead of repeating\nthe git checkout.\n\nThanks\n\nTomas",
132
+ "committedDate": "2019-11-18T15:53:55Z"
133
+ }
134
+ }
135
+ ]
136
+ }
137
+ }
data/raw_sample/prs/pr-100000.json ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 100000,
3
+ "title": "Trim unused interfaces",
4
+ "body": "So far, the compiler could only trim unused interface __methods__; the interface __types__ themselves were left alone. There is not a huge cost associated with having these extra `MethodTable`s, but it sill impacts size/working set/startup. Initial estimate showed this could actually be up to 2% for BasicMinimalApi so I decided to investigate a fix.\r\n\r\nThis is an attempt to start trimming them. I chose a relatively conservative approach:\r\n\r\n* Stop unconditionally rooting the interface `MethodTable` in the implementing class `MethodTable` InterfaceList. Instead check whether someone else marked it first.\r\n* Track whether an interface type definition is used in any way. This avoids problem with variance, etc. If an interface definition is used, all instantiations that we were trying to optimize away get the `MethodTable` and won't be optimized. We should be able to do better than this, maybe, at some point.\r\n* Classes that implement generic interfaces with default methods need special treatment because we index into interface list at runtime and we might not know the correct index yet. So just forget the optimization in that case.\r\n\r\nFixes #66716.",
5
+ "createdAt": "2024-03-20T08:55:34Z",
6
+ "closedAt": "2024-03-23T22:28:34Z",
7
+ "mergedAt": "2024-03-23T22:28:34Z",
8
+ "state": "MERGED",
9
+ "author": {
10
+ "login": "MichalStrehovsky"
11
+ },
12
+ "labels": {
13
+ "nodes": [
14
+ {
15
+ "name": "area-NativeAOT-coreclr"
16
+ }
17
+ ]
18
+ },
19
+ "headRefName": "intfstrip",
20
+ "additions": 224,
21
+ "deletions": 57,
22
+ "changedFiles": 21,
23
+ "comments": {
24
+ "totalCount": 13,
25
+ "nodes": [
26
+ {
27
+ "body": "I vaguely remember that some part of the iOS managed static registrar or the linker pipeline may depend on the current behavior. So, cc @ivanpovazan, @simonrozsival in case they do remember the details or have some general concerns.",
28
+ "createdAt": "2024-03-20T09:12:35Z"
29
+ },
30
+ {
31
+ "body": "@filipnavara If I understand this change correctly, I don't think this should break iOS. There are cases when we explicitly cast objects to an interface they implement and call a method on the interface. I think that falls under the second bullet point and in that case the optimization won't be applied.",
32
+ "createdAt": "2024-03-20T10:43:39Z"
33
+ },
34
+ {
35
+ "body": "> I think that falls under the second bullet point and in that case the optimization won't be applied.\r\n\r\nThanks for checking!\r\n",
36
+ "createdAt": "2024-03-20T10:48:50Z"
37
+ },
38
+ {
39
+ "body": "/azp run runtime-nativeaot-outerloop",
40
+ "createdAt": "2024-03-20T11:36:21Z"
41
+ },
42
+ {
43
+ "body": "<samp>\nAzure Pipelines successfully started running 1 pipeline(s).<br>\r\n\n</samp>",
44
+ "createdAt": "2024-03-20T11:36:34Z"
45
+ },
46
+ {
47
+ "body": "ID: 100000 🎉 ",
48
+ "createdAt": "2024-03-20T15:22:08Z"
49
+ },
50
+ {
51
+ "body": "So this won't be quite the promised 2% size saving on WebapiAot template because once I started to worry about generic interfaces and the suppressions that assume IL level trimming we have within the libraries, it became 0.7%.\r\n\r\nIn libraries, we have several places where we call `GetInterfaces()` without a properly annotated/statically known type and assume that if we grab the type definition of the interface we got from `GetInterfaces()` and compare with `typeof(OpenVersion<>)`, it's going to be reliable and trim safe way to detect if the type implemented say `OpenVersion<int>`. It's safe in IL sense. In AOT sense, we could have stripped `OpenVersion<int>` if it was never used and then this trim-unsafe piece of code won't find it. So we can't do it. Oh well.\r\n\r\nBut the good news is that `dotnet new console --aot` followed by `dotnet publish /p:OptimizationPreference=Size /p:StackTraceSupport=false /p:UseSystemResourceKeys=true` is now ***877 kB***.\r\n\r\n# Size statistics\r\n\r\nPull request dotnet/runtime#100000\r\n\r\n| Project | Size before | Size after | Difference |\r\n|---------|-------------|------------|------------|\r\n| avalonia.app-linux | [ 24681968 ](https://github.com/MichalStrehovsky/rt-sz/actions/runs/8371281835/artifacts/1345532638) | [ 24615120 ](https://github.com/MichalStrehovsky/rt-sz/actions/runs/8371281835/artifacts/1345532361) | -66848 |\r\n| avalonia.app-windows | [ 22321152 ](https://github.com/MichalStrehovsky/rt-sz/actions/runs/8371281835/artifacts/1345533992) | [ 22253568 ](https://github.com/MichalStrehovsky/rt-sz/actions/runs/8371281835/artifacts/1345534230) | -67584 |\r\n| hello-linux | [ 1316304 ](https://github.com/MichalStrehovsky/rt-sz/actions/runs/8371281835/artifacts/1345530706) | [ 1266592 ](https://github.com/MichalStrehovsky/rt-sz/actions/runs/8371281835/artifacts/1345530587) | -49712 |\r\n| hello-minimal-linux | [ 1172808 ](https://github.com/MichalStrehovsky/rt-sz/actions/runs/8371281835/artifacts/1345530970) | [ 1119000 ](https://github.com/MichalStrehovsky/rt-sz/actions/runs/8371281835/artifacts/1345530503) | -53808 |\r\n| hello-minimal-windows | [ 947200 ](https://github.com/MichalStrehovsky/rt-sz/actions/runs/8371281835/artifacts/1345531948) | [ 898560 ](https://github.com/MichalStrehovsky/rt-sz/actions/runs/8371281835/artifacts/1345532788) | -48640 |\r\n| hello-windows | [ 1200640 ](https://github.com/MichalStrehovsky/rt-sz/actions/runs/8371281835/artifacts/1345532280) | [ 1149952 ](https://github.com/MichalStrehovsky/rt-sz/actions/runs/8371281835/artifacts/1345532013) | -50688 |\r\n| webapiaot-linux | [ 10363808 ](https://github.com/MichalStrehovsky/rt-sz/actions/runs/8371281835/artifacts/1345531354) | [ 10301344 ](https://github.com/MichalStrehovsky/rt-sz/actions/runs/8371281835/artifacts/1345531459) | -62464 |\r\n| webapiaot-windows | [ 9438720 ](https://github.com/MichalStrehovsky/rt-sz/actions/runs/8371281835/artifacts/1345532871) | [ 9377280 ](https://github.com/MichalStrehovsky/rt-sz/actions/runs/8371281835/artifacts/1345532767) | -61440 |\r\n",
52
+ "createdAt": "2024-03-21T09:09:34Z"
53
+ },
54
+ {
55
+ "body": "@dotnet/ilc-contrib this is ready for review",
56
+ "createdAt": "2024-03-21T11:08:03Z"
57
+ },
58
+ {
59
+ "body": "/azp run runtime-nativeaot-outerloop",
60
+ "createdAt": "2024-03-21T11:24:25Z"
61
+ },
62
+ {
63
+ "body": "<samp>\nAzure Pipelines successfully started running 1 pipeline(s).<br>\r\n\n</samp>",
64
+ "createdAt": "2024-03-21T11:24:40Z"
65
+ },
66
+ {
67
+ "body": "Hmm, the linux-arm failure is interesting but unrelated:\r\n\r\n```\r\n(lldb) bt\r\nThis version of LLDB has no plugin for the language \"assembler\". Inspection of frame variables will be limited.\r\n* thread #1, name = 'Microsoft.Exten', stop reason = signal SIGSEGV\r\n * frame #0: 0x00eab31e Microsoft.Extensions.Logging.Console.Tests`RhpCheckedAssignRefr1 at WriteBarriers.S:251\r\n frame #1: 0x011ec304 Microsoft.Extensions.Logging.Console.Tests`System.Runtime.TypeCast___cctor at TypeCast.cs:36\r\n frame #2: 0x0121c2b8 Microsoft.Extensions.Logging.Console.Tests`Internal.Runtime.CompilerHelpers.StartupCodeHelpers__RunInitializers(typeManager=<unavailable>, section=<unavailable>) at StartupCodeHelpers.cs:181\r\n frame #3: 0x0121be8e Microsoft.Extensions.Logging.Console.Tests`Internal.Runtime.CompilerHelpers.StartupCodeHelpers__InitializeModules(osModule=<unavailable>, pModuleHeaders=<unavailable>, count=<unavailable>, pClasslibFunctions=<unavailable>, nClasslibFunctions=<unavailable>) at StartupCodeHelpers.cs:53\r\n frame #4: 0x00e6f4d4 Microsoft.Extensions.Logging.Console.Tests`main [inlined] InitializeRuntime() at main.cpp:203:5 [opt]\r\n frame #5: 0x00e6f470 Microsoft.Extensions.Logging.Console.Tests`main(argc=9, argv=0xffca6804) at main.cpp:221:19 [opt]\r\n(lldb) dis -b -A thumbv7\r\nMicrosoft.Extensions.Logging.Console.Tests`RhpCheckedAssignRef:\r\n 0xeab2be <+0>: 0xf3bf8f5f dmb sy\r\n\r\nMicrosoft.Extensions.Logging.Console.Tests`RhpCheckedAssignRefr1:\r\n 0xeab2c2 <+4>: 0x6001 str r1, [r0]\r\n 0xeab2c4 <+6>: 0xf2400c4c movw r12, #0x4c\r\n 0xeab2c8 <+10>: 0xf2c00ca0 movt r12, #0xa0\r\n 0xeab2cc <+14>: 0x44fc add r12, pc\r\n 0xeab2ce <+16>: 0xf8dcc000 ldr.w r12, [r12]\r\n 0xeab2d2 <+20>: 0x4560 cmp r0, r12\r\n 0xeab2d4 <+22>: 0xd328 blo 0x89b328 ; <+106>\r\n 0xeab2d6 <+24>: 0xf2400c3e movw r12, #0x3e\r\n 0xeab2da <+28>: 0xf2c00ca0 movt r12, #0xa0\r\n 0xeab2de <+32>: 0x44fc add r12, pc\r\n 0xeab2e0 <+34>: 0xf8dcc000 ldr.w r12, [r12]\r\n 0xeab2e4 <+38>: 0x4560 cmp r0, r12\r\n 0xeab2e6 <+40>: 0xd21f bhs 0x89b328 ; <+106>\r\n 0xeab2e8 <+42>: 0xf6470ca0 movw r12, #0x78a0\r\n 0xeab2ec <+46>: 0xf2c00c9e movt r12, #0x9e\r\n 0xeab2f0 <+50>: 0x44fc add r12, pc\r\n 0xeab2f2 <+52>: 0xf8dcc000 ldr.w r12, [r12]\r\n 0xeab2f6 <+56>: 0x4561 cmp r1, r12\r\n 0xeab2f8 <+58>: 0xd31b blo 0x89b332 ; <+116>\r\n 0xeab2fa <+60>: 0xf6470c92 movw r12, #0x7892\r\n 0xeab2fe <+64>: 0xf2c00c9e movt r12, #0x9e\r\n 0xeab302 <+68>: 0x44fc add r12, pc\r\n 0xeab304 <+70>: 0xf8dcc000 ldr.w r12, [r12]\r\n 0xeab308 <+74>: 0x4561 cmp r1, r12\r\n 0xeab30a <+76>: 0xd212 bhs 0x89b332 ; <+116>\r\n 0xeab30c <+78>: 0xf2400c00 movw r12, #0x0\r\n 0xeab310 <+82>: 0xf2c00c9f movt r12, #0x9f\r\n 0xeab314 <+86>: 0x44fc add r12, pc\r\n 0xeab316 <+88>: 0xf8dcc000 ldr.w r12, [r12]\r\n 0xeab31a <+92>: 0xeb0c2090 add.w r0, r12, r0, lsr #10\r\n-> 0xeab31e <+96>: 0xf890c000 ldrb.w r12, [r0]\r\n 0xeab322 <+100>: 0xf1bc0fff cmp.w r12, #0xff\r\n 0xeab326 <+104>: 0xd100 bne 0x89b32a ; <+108>\r\n 0xeab328 <+106>: 0xe003 b 0x89b332 ; <+116>\r\n 0xeab32a <+108>: 0xf04f0cff mov.w r12, #0xff\r\n 0xeab32e <+112>: 0xf880c000 strb.w r12, [r0]\r\n 0xeab332 <+116>: 0x4770 bx lr\r\n(lldb)\r\n```\r\n\r\nCc @filipnavara \r\n\r\nRunfo:\r\n\r\n```\r\nrunfo get-helix-payload -j 320338f9-9d8c-4deb-9eeb-884cfb26892e -w Microsoft.Extensions.Logging.Console.Tests -o c:\\helix_payload\\Microsoft.Extensions.Logging.Console.Tests\r\n```",
68
+ "createdAt": "2024-03-21T17:24:13Z"
69
+ },
70
+ {
71
+ "body": "I'll wait with merging this until after #98712. I don't want to mask off how much of a regression that PR is.",
72
+ "createdAt": "2024-03-21T17:26:19Z"
73
+ },
74
+ {
75
+ "body": "> the linux-arm failure is interesting\r\n\r\nOpened https://github.com/dotnet/runtime/issues/100112",
76
+ "createdAt": "2024-03-22T01:50:53Z"
77
+ }
78
+ ]
79
+ },
80
+ "reviewThreads": {
81
+ "totalCount": 0,
82
+ "nodes": []
83
+ },
84
+ "commits": {
85
+ "totalCount": 3,
86
+ "nodes": [
87
+ {
88
+ "commit": {
89
+ "oid": "13e62212b9b6de6ff0b198207fcbe5531bf6b442",
90
+ "message": "Trim unused interfaces\n\nSo far, the compiler could only trim unused interface __methods__; the interface __types__ themselves were left alone. There is not a huge cost associated with having these extra `MethodTable`s, but it sill impacts size/working set/startup. Initial estimate showed this could actually be up to 2% for BasicMinimalApi so I decided to investigate a fix.\n\nThis is an attempt to start trimming them. I chose a relatively conservative approach:\n\n* Stop unconditionally rooting the interface `MethodTable` in the implementing class `MethodTable` InterfaceList. Instead check whether someone else marked it first.\n* Track whether an interface type definition is used in any way. This avoids problem with variance, etc. If an interface definition is used, all instantiations that we were trying to optimize away get the `MethodTable` and won't be optimized. We should be able to do better than this, maybe, at some point.\n* Classes that implement generic interfaces with default methods need special treatment because we index into interface list at runtime and we might not know the correct index yet. So just forget the optimization in that case.\n\nFixes #66716.",
91
+ "committedDate": "2024-03-20T08:49:22Z"
92
+ }
93
+ },
94
+ {
95
+ "commit": {
96
+ "oid": "008f01ec8042cfa23abe4dff91bc07cde848b0c6",
97
+ "message": "Also remove from reflection metadata",
98
+ "committedDate": "2024-03-21T06:52:52Z"
99
+ }
100
+ },
101
+ {
102
+ "commit": {
103
+ "oid": "7a4a308fa7351ff447cffc1f465af4db98d0e411",
104
+ "message": "Fix tests",
105
+ "committedDate": "2024-03-21T11:07:28Z"
106
+ }
107
+ }
108
+ ]
109
+ }
110
+ }
data/raw_sample/prs/pr-100001.json ADDED
@@ -0,0 +1,214 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 100001,
3
+ "title": "Support setting NamedPipeClientStream.ReadMode with PipeAccessRights ctor overload",
4
+ "body": "Fixes #83072 ([Cannot set ReadMode after creating a NamedPipeClientStream instance](https://github.com/dotnet/runtime/issues/83072)).\r\n\r\nPer the [API Review notes and video](https://github.com/dotnet/runtime/issues/83072#issuecomment-1942189738):\r\n\r\n1. Add the missing constructor to `NamedPipeClientStream` that accepts `PipeAccessRights`\r\n2. Promote `PipeAccessRights` from System.IO.Pipes.AccessRights to System.IO.Pipes, and add the necessary type-forward\r\n3. Mark the constructor as being only supported on Windows, but leave the enum available on all platforms\r\n4. Review for nullability annotations -- no arguments allow null\r\n\r\nThe .NET Framework implementation was referenced from [Pipe.cs](https://referencesource.microsoft.com/#System.Core/System/IO/Pipes/Pipe.cs,a71f90682fcb0da9), but the behavior was improved slightly.\r\n\r\n* Argument validation logic is reused rather than being duplicated into the new constructor\r\n* The `direction` argument is given a valid value when the `desiredAccessRights` value is invalid, ensuring that the correct `desiredAccessRights` argument exception is thrown\r\n * In netfx, any `desiredAccessRights` value missing both the `ReadData` (1) and `WriteData` (2) bits would throw an argument exception for `direction`, which is not an argument to the constructor\r\n* Argument validation for `desiredAccessRights` also throws for a `0` value, which netfx didn't do\r\n\r\nThe functionality was tested using the following server / client apps:\r\n\r\n**server.cs**\r\n```c#\r\nusing System.IO.Pipes;\r\n\r\nvar pipeOut = new NamedPipeServerStream(\"SomeNamedPipe\",\r\n PipeDirection.Out,\r\n 1,\r\n PipeTransmissionMode.Message);\r\n\r\nConsole.WriteLine(\"Waiting for a connection...\");\r\npipeOut.WaitForConnection();\r\n\r\nConsole.WriteLine(\"Connected. Sending messages...\");\r\n\r\nwhile (true) {\r\n pipeOut.Write(\"Hello \"u8);\r\n pipeOut.Write(\"from \"u8);\r\n pipeOut.Write(\"the \"u8);\r\n pipeOut.Write(\"server!\"u8);\r\n\r\n Console.WriteLine(\"Messages sent. Sleeping for 10 seconds.\");\r\n System.Threading.Thread.Sleep(10_000);\r\n}\r\n```\r\n\r\n**client.cs**\r\n```c#\r\nusing System.IO.Pipes;\r\n\r\nvar pipeIn = new NamedPipeClientStream(\".\",\r\n \"SomeNamedPipe\",\r\n PipeAccessRights.ReadData | PipeAccessRights.WriteAttributes,\r\n PipeOptions.None,\r\n System.Security.Principal.TokenImpersonationLevel.None,\r\n System.IO.HandleInheritability.None);\r\n\r\npipeIn.Connect();\r\npipeIn.ReadMode = PipeTransmissionMode.Message;\r\n\r\nwhile (pipeIn.IsConnected)\r\n{\r\n var buffer = new byte[2];\r\n var bytesRead = pipeIn.Read(buffer, 0, buffer.Length);\r\n\r\n if (bytesRead > 0) {\r\n var message = System.Text.Encoding.UTF8.GetString(buffer, 0, bytesRead);\r\n Console.Write(message);\r\n\r\n System.Threading.Thread.Sleep(1000);\r\n\r\n if (pipeIn.IsMessageComplete) {\r\n Console.WriteLine();\r\n }\r\n }\r\n}\r\n```\r\n\r\nWith this PR, that application works as expected, with the client detecting completed messages after each word and rendering newlines.\r\n",
5
+ "createdAt": "2024-03-20T09:10:25Z",
6
+ "closedAt": "2024-03-27T15:02:32Z",
7
+ "mergedAt": "2024-03-27T15:02:32Z",
8
+ "state": "MERGED",
9
+ "author": {
10
+ "login": "jeffhandley"
11
+ },
12
+ "labels": {
13
+ "nodes": [
14
+ {
15
+ "name": "area-System.IO"
16
+ },
17
+ {
18
+ "name": "new-api-needs-documentation"
19
+ }
20
+ ]
21
+ },
22
+ "headRefName": "jeffhandley/namedpipe-readmode",
23
+ "additions": 334,
24
+ "deletions": 58,
25
+ "changedFiles": 15,
26
+ "comments": {
27
+ "totalCount": 1,
28
+ "nodes": [
29
+ {
30
+ "body": "Note regarding the `new-api-needs-documentation` label:\r\n\r\n This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.",
31
+ "createdAt": "2024-03-20T09:10:30Z"
32
+ }
33
+ ]
34
+ },
35
+ "reviewThreads": {
36
+ "totalCount": 7,
37
+ "nodes": [
38
+ {
39
+ "comments": {
40
+ "nodes": [
41
+ {
42
+ "path": "src/libraries/System.IO.Pipes/src/System/IO/Pipes/NamedPipeClientStream.Windows.cs",
43
+ "diffHunk": "@@ -16,6 +17,78 @@ namespace System.IO.Pipes\n /// </summary>\n public sealed partial class NamedPipeClientStream : PipeStream\n {\n+ /// <summary>\n+ /// Initializes a new instance of the <see cref=\"NamedPipeClientStream\"/> class with the specified pipe and server names,\n+ /// the desired <see cref=\"PipeAccessRights\"/>, and the specified impersonation level and inheritability.\n+ /// </summary>\n+ /// <param name=\"serverName\">The name of the remote computer to connect to, or \".\" to specify the local computer.</param>\n+ /// <param name=\"pipeName\">The name of the pipe.</param>\n+ /// <param name=\"desiredAccessRights\">One of the enumeration values that specifies the desired access rights of the pipe.</param>\n+ /// <param name=\"options\">One of the enumeration values that determines how to open or create the pipe.</param>\n+ /// <param name=\"impersonationLevel\">One of the enumeration values that determines the security impersonation level.</param>\n+ /// <param name=\"inheritability\">One of the enumeration values that determines whether the underlying handle will be inheritable by child processes.</param>\n+ /// <exception cref=\"ArgumentNullException\"><paramref name=\"pipeName\"/> or <paramref name=\"serverName\"/> is <c>null</c>.</exception>\n+ /// <exception cref=\"ArgumentException\"><paramref name=\"pipeName\"/> or <paramref name=\"serverName\"/> is a zero-length string.</exception>\n+ /// <exception cref=\"ArgumentOutOfRangeException\"><paramref name=\"pipeName\"/> is set to \"anonymous\".</exception>\n+ /// <exception cref=\"ArgumentOutOfRangeException\"><paramref name=\"desiredAccessRights\"/> is not a valid <see cref=\"PipeAccessRights\"/> value.</exception>\n+ /// <exception cref=\"ArgumentOutOfRangeException\"><paramref name=\"options\"/> is not a valid <see cref=\"PipeOptions\"/> value.</exception>\n+ /// <exception cref=\"ArgumentOutOfRangeException\"><paramref name=\"impersonationLevel\"/> is not a valid <see cref=\"TokenImpersonationLevel\"/> value.</exception>\n+ /// <exception cref=\"ArgumentOutOfRangeException\"><paramref name=\"inheritability\"/> is not a valid <see cref=\"HandleInheritability\"/> value.</exception>\n+ /// <remarks>\n+ /// The pipe direction for this constructor is determined by the <paramref name=\"desiredAccessRights\"/> parameter.\n+ /// If the <paramref name=\"desiredAccessRights\"/> parameter specifies <see cref=\"PipeAccessRights.ReadData\"/>,\n+ /// the pipe direction is <see cref=\"PipeDirection.In\"/>. If the <paramref name=\"desiredAccessRights\"/> parameter\n+ /// specifies <see cref=\"PipeAccessRights.WriteData\"/>, the pipe direction is <see cref=\"PipeDirection.Out\"/>.\n+ /// If the value of <paramref name=\"desiredAccessRights\"/> specifies both <see cref=\"PipeAccessRights.ReadData\"/>\n+ /// and <see cref=\"PipeAccessRights.WriteData\"/>, the pipe direction is <see cref=\"PipeDirection.InOut\"/>.\n+ /// </remarks>\n+ [System.Runtime.Versioning.SupportedOSPlatform(\"windows\")]\n+ public NamedPipeClientStream(string serverName, string pipeName, PipeAccessRights desiredAccessRights,",
44
+ "body": "Are there any tests for this new ctor other than failure cases?",
45
+ "createdAt": "2024-03-20T14:15:02Z"
46
+ }
47
+ ]
48
+ }
49
+ },
50
+ {
51
+ "comments": {
52
+ "nodes": [
53
+ {
54
+ "path": "src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.CreateClient.cs",
55
+ "diffHunk": "@@ -17,13 +17,15 @@ public static void NullPipeName_Throws_ArgumentNullException()\n {\n AssertExtensions.Throws<ArgumentNullException>(\"pipeName\", () => new NamedPipeClientStream(null));\n AssertExtensions.Throws<ArgumentNullException>(\"pipeName\", () => new NamedPipeClientStream(\".\", null));\n+ AssertExtensions.Throws<ArgumentNullException>(\"pipeName\", () => new NamedPipeClientStream(\".\", null, PipeAccessRights.FullControl, PipeOptions.None, TokenImpersonationLevel.None, HandleInheritability.None));",
56
+ "body": "Do these tests run on Unix? I'd expect such use would result in a PlatformNotSupportedException being thrown, since the Unix impl is hardcoded to always do that and not do any arg validation.",
57
+ "createdAt": "2024-03-20T14:18:55Z"
58
+ },
59
+ {
60
+ "path": "src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.CreateClient.cs",
61
+ "diffHunk": "@@ -17,13 +17,15 @@ public static void NullPipeName_Throws_ArgumentNullException()\n {\n AssertExtensions.Throws<ArgumentNullException>(\"pipeName\", () => new NamedPipeClientStream(null));\n AssertExtensions.Throws<ArgumentNullException>(\"pipeName\", () => new NamedPipeClientStream(\".\", null));\n+ AssertExtensions.Throws<ArgumentNullException>(\"pipeName\", () => new NamedPipeClientStream(\".\", null, PipeAccessRights.FullControl, PipeOptions.None, TokenImpersonationLevel.None, HandleInheritability.None));",
62
+ "body": "Thanks for catching that. I broke these out into separate platform-specific tests.",
63
+ "createdAt": "2024-03-22T01:10:32Z"
64
+ }
65
+ ]
66
+ }
67
+ },
68
+ {
69
+ "comments": {
70
+ "nodes": [
71
+ {
72
+ "path": "src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.CreateClient.cs",
73
+ "diffHunk": "@@ -17,6 +17,12 @@ public static void NullPipeName_Throws_ArgumentNullException()\n {\n AssertExtensions.Throws<ArgumentNullException>(\"pipeName\", () => new NamedPipeClientStream(null));\n AssertExtensions.Throws<ArgumentNullException>(\"pipeName\", () => new NamedPipeClientStream(\".\", null));\n+ }\n+\n+ [Fact]\n+ [PlatformSpecific(TestPlatforms.Windows)]",
74
+ "body": "Since AccessRights are specific to Windows, could you please move the PlatformSpecific tests to a separate file? It could be named NamedPipeTest.CreateClient.Windows.cs and can be placed in the same csproj ItemGroup as the other Windows-specific tests.",
75
+ "createdAt": "2024-03-23T00:04:01Z"
76
+ },
77
+ {
78
+ "path": "src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.CreateClient.cs",
79
+ "diffHunk": "@@ -17,6 +17,12 @@ public static void NullPipeName_Throws_ArgumentNullException()\n {\n AssertExtensions.Throws<ArgumentNullException>(\"pipeName\", () => new NamedPipeClientStream(null));\n AssertExtensions.Throws<ArgumentNullException>(\"pipeName\", () => new NamedPipeClientStream(\".\", null));\n+ }\n+\n+ [Fact]\n+ [PlatformSpecific(TestPlatforms.Windows)]",
80
+ "body": "I was torn on this and saw trade-offs in either direction (separate file for improved cleanliness, or same file for improved discoverability). But as you call out, there is already a heavy usage of platform-specific files, so I'll make the change.",
81
+ "createdAt": "2024-03-26T04:26:42Z"
82
+ }
83
+ ]
84
+ }
85
+ },
86
+ {
87
+ "comments": {
88
+ "nodes": [
89
+ {
90
+ "path": "src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.MessageMode.Windows.cs",
91
+ "diffHunk": "@@ -0,0 +1,106 @@\n+// Licensed to the .NET Foundation under one or more agreements.\n+// The .NET Foundation licenses this file to you under the MIT license.\n+\n+using System.Collections.Generic;\n+using System.IO.Tests;\n+using System.Linq;\n+using System.Runtime.InteropServices;\n+using System.Threading;\n+using System.Threading.Tasks;\n+using Xunit;\n+\n+namespace System.IO.Pipes.Tests\n+{\n+ // Support for PipeAccessRights and setting ReadMode to Message is only supported on Windows\n+ public class NamedPipeTest_MessageMode_Windows\n+ {\n+ private const PipeAccessRights MinimumMessageAccessRights = PipeAccessRights.ReadData | PipeAccessRights.WriteAttributes;\n+\n+ private static NamedPipeClientStream CreateClientStream(string pipeName, PipeOptions options) =>\n+ new NamedPipeClientStream(\".\", pipeName, MinimumMessageAccessRights, options, Security.Principal.TokenImpersonationLevel.None, HandleInheritability.None);\n+\n+ [Theory]\n+ [InlineData(PipeDirection.Out, PipeOptions.None)]\n+ [InlineData(PipeDirection.InOut, PipeOptions.Asynchronous)]\n+ public async Task Client_DetectsMessageCompleted(PipeDirection serverDirection, PipeOptions options)\n+ {\n+ string pipeName = PipeStreamConformanceTests.GetUniquePipeName();\n+\n+ using NamedPipeServerStream server = new NamedPipeServerStream(pipeName, serverDirection, 1, PipeTransmissionMode.Message, options);\n+ using NamedPipeClientStream client = CreateClientStream(pipeName, options);\n+\n+ Task.WaitAll(server.WaitForConnectionAsync(), client.ConnectAsync());\n+ client.ReadMode = PipeTransmissionMode.Message;\n+\n+ ValueTask serverWrite = server.WriteAsync(new byte[] { 1, 2, 3, 4, 5 });",
92
+ "body": "Is there a reason why the `ValueTask` is being created here if it's not being awaited? I'm failing to see if such early/non-awaited call is relevant to the new constructor.",
93
+ "createdAt": "2024-03-23T00:10:23Z"
94
+ },
95
+ {
96
+ "path": "src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.MessageMode.Windows.cs",
97
+ "diffHunk": "@@ -0,0 +1,106 @@\n+// Licensed to the .NET Foundation under one or more agreements.\n+// The .NET Foundation licenses this file to you under the MIT license.\n+\n+using System.Collections.Generic;\n+using System.IO.Tests;\n+using System.Linq;\n+using System.Runtime.InteropServices;\n+using System.Threading;\n+using System.Threading.Tasks;\n+using Xunit;\n+\n+namespace System.IO.Pipes.Tests\n+{\n+ // Support for PipeAccessRights and setting ReadMode to Message is only supported on Windows\n+ public class NamedPipeTest_MessageMode_Windows\n+ {\n+ private const PipeAccessRights MinimumMessageAccessRights = PipeAccessRights.ReadData | PipeAccessRights.WriteAttributes;\n+\n+ private static NamedPipeClientStream CreateClientStream(string pipeName, PipeOptions options) =>\n+ new NamedPipeClientStream(\".\", pipeName, MinimumMessageAccessRights, options, Security.Principal.TokenImpersonationLevel.None, HandleInheritability.None);\n+\n+ [Theory]\n+ [InlineData(PipeDirection.Out, PipeOptions.None)]\n+ [InlineData(PipeDirection.InOut, PipeOptions.Asynchronous)]\n+ public async Task Client_DetectsMessageCompleted(PipeDirection serverDirection, PipeOptions options)\n+ {\n+ string pipeName = PipeStreamConformanceTests.GetUniquePipeName();\n+\n+ using NamedPipeServerStream server = new NamedPipeServerStream(pipeName, serverDirection, 1, PipeTransmissionMode.Message, options);\n+ using NamedPipeClientStream client = CreateClientStream(pipeName, options);\n+\n+ Task.WaitAll(server.WaitForConnectionAsync(), client.ConnectAsync());\n+ client.ReadMode = PipeTransmissionMode.Message;\n+\n+ ValueTask serverWrite = server.WriteAsync(new byte[] { 1, 2, 3, 4, 5 });",
98
+ "body": "It is awaited before existing the test. I need to call the non-blocking `WriteAsync` so that the test can proceed and the client can start consuming the data; otherwise, `Write` blocks while waiting for a client to consume the data.\r\n\r\nI could probably get away with discarding the `ValueTask`, but it seemed cleaner to capture it and await it before letting the test finish.",
99
+ "createdAt": "2024-03-26T05:01:25Z"
100
+ }
101
+ ]
102
+ }
103
+ },
104
+ {
105
+ "comments": {
106
+ "nodes": [
107
+ {
108
+ "path": "src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.MessageMode.Windows.cs",
109
+ "diffHunk": "@@ -0,0 +1,106 @@\n+// Licensed to the .NET Foundation under one or more agreements.\n+// The .NET Foundation licenses this file to you under the MIT license.\n+\n+using System.Collections.Generic;\n+using System.IO.Tests;\n+using System.Linq;\n+using System.Runtime.InteropServices;\n+using System.Threading;\n+using System.Threading.Tasks;\n+using Xunit;\n+\n+namespace System.IO.Pipes.Tests\n+{\n+ // Support for PipeAccessRights and setting ReadMode to Message is only supported on Windows\n+ public class NamedPipeTest_MessageMode_Windows\n+ {\n+ private const PipeAccessRights MinimumMessageAccessRights = PipeAccessRights.ReadData | PipeAccessRights.WriteAttributes;\n+\n+ private static NamedPipeClientStream CreateClientStream(string pipeName, PipeOptions options) =>\n+ new NamedPipeClientStream(\".\", pipeName, MinimumMessageAccessRights, options, Security.Principal.TokenImpersonationLevel.None, HandleInheritability.None);\n+\n+ [Theory]\n+ [InlineData(PipeDirection.Out, PipeOptions.None)]\n+ [InlineData(PipeDirection.InOut, PipeOptions.Asynchronous)]\n+ public async Task Client_DetectsMessageCompleted(PipeDirection serverDirection, PipeOptions options)\n+ {\n+ string pipeName = PipeStreamConformanceTests.GetUniquePipeName();\n+\n+ using NamedPipeServerStream server = new NamedPipeServerStream(pipeName, serverDirection, 1, PipeTransmissionMode.Message, options);\n+ using NamedPipeClientStream client = CreateClientStream(pipeName, options);\n+\n+ Task.WaitAll(server.WaitForConnectionAsync(), client.ConnectAsync());\n+ client.ReadMode = PipeTransmissionMode.Message;\n+\n+ ValueTask serverWrite = server.WriteAsync(new byte[] { 1, 2, 3, 4, 5 });\n+\n+ byte[] buffer1 = new byte[2], buffer2 = new byte[2], buffer3 = new byte[2];\n+ bool[] messageCompleted = new bool[3];\n+\n+ int bytesRead = client.Read(buffer1, 0, 2);\n+ messageCompleted[0] = client.IsMessageComplete;\n+\n+ bytesRead += client.Read(buffer2, 0, 2);\n+ messageCompleted[1] = client.IsMessageComplete;\n+\n+ bytesRead += client.Read(buffer3, 0, 2);\n+ messageCompleted[2] = client.IsMessageComplete;\n+\n+ Assert.Equal(5, bytesRead);\n+ Assert.Equal(new byte[] { 1, 2, 3, 4, 5, 0 }, buffer1.Concat(buffer2).Concat(buffer3));\n+ Assert.Equal(new bool[] { false, false, true }, messageCompleted);\n+\n+ await serverWrite;",
110
+ "body": "I would move line 35 to here, and return the `ValueTask` directly:\r\n\r\n```suggestion\r\n return server.WriteAsync(new byte[] { 1, 2, 3, 4, 5 });\r\n```\r\n\r\nAnd since you have no more awaits in the method body, you can remove the `async` modified from the method. And I think you can also change the return type of the method to `ValueTask`.\r\n\r\n@stephentoub please yell at me if I'm giving a bad suggestion.",
111
+ "createdAt": "2024-03-23T00:11:18Z"
112
+ },
113
+ {
114
+ "path": "src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.MessageMode.Windows.cs",
115
+ "diffHunk": "@@ -0,0 +1,106 @@\n+// Licensed to the .NET Foundation under one or more agreements.\n+// The .NET Foundation licenses this file to you under the MIT license.\n+\n+using System.Collections.Generic;\n+using System.IO.Tests;\n+using System.Linq;\n+using System.Runtime.InteropServices;\n+using System.Threading;\n+using System.Threading.Tasks;\n+using Xunit;\n+\n+namespace System.IO.Pipes.Tests\n+{\n+ // Support for PipeAccessRights and setting ReadMode to Message is only supported on Windows\n+ public class NamedPipeTest_MessageMode_Windows\n+ {\n+ private const PipeAccessRights MinimumMessageAccessRights = PipeAccessRights.ReadData | PipeAccessRights.WriteAttributes;\n+\n+ private static NamedPipeClientStream CreateClientStream(string pipeName, PipeOptions options) =>\n+ new NamedPipeClientStream(\".\", pipeName, MinimumMessageAccessRights, options, Security.Principal.TokenImpersonationLevel.None, HandleInheritability.None);\n+\n+ [Theory]\n+ [InlineData(PipeDirection.Out, PipeOptions.None)]\n+ [InlineData(PipeDirection.InOut, PipeOptions.Asynchronous)]\n+ public async Task Client_DetectsMessageCompleted(PipeDirection serverDirection, PipeOptions options)\n+ {\n+ string pipeName = PipeStreamConformanceTests.GetUniquePipeName();\n+\n+ using NamedPipeServerStream server = new NamedPipeServerStream(pipeName, serverDirection, 1, PipeTransmissionMode.Message, options);\n+ using NamedPipeClientStream client = CreateClientStream(pipeName, options);\n+\n+ Task.WaitAll(server.WaitForConnectionAsync(), client.ConnectAsync());\n+ client.ReadMode = PipeTransmissionMode.Message;\n+\n+ ValueTask serverWrite = server.WriteAsync(new byte[] { 1, 2, 3, 4, 5 });\n+\n+ byte[] buffer1 = new byte[2], buffer2 = new byte[2], buffer3 = new byte[2];\n+ bool[] messageCompleted = new bool[3];\n+\n+ int bytesRead = client.Read(buffer1, 0, 2);\n+ messageCompleted[0] = client.IsMessageComplete;\n+\n+ bytesRead += client.Read(buffer2, 0, 2);\n+ messageCompleted[1] = client.IsMessageComplete;\n+\n+ bytesRead += client.Read(buffer3, 0, 2);\n+ messageCompleted[2] = client.IsMessageComplete;\n+\n+ Assert.Equal(5, bytesRead);\n+ Assert.Equal(new byte[] { 1, 2, 3, 4, 5, 0 }, buffer1.Concat(buffer2).Concat(buffer3));\n+ Assert.Equal(new bool[] { false, false, true }, messageCompleted);\n+\n+ await serverWrite;",
116
+ "body": "I'm not sure I follow the recommendation. The test is getting both the server and client running and connected, and then it fires off an async write from the server so that the test can proceed with the client consuming the written bytes (and make asserts based on the received data). Without the `WriteAsync`, the `client.Read` calls will block until data can be received.\r\n\r\n_XUnit test methods don't support `ValueTask` returns. Today I learned._",
117
+ "createdAt": "2024-03-26T05:10:16Z"
118
+ }
119
+ ]
120
+ }
121
+ },
122
+ {
123
+ "comments": {
124
+ "nodes": [
125
+ {
126
+ "path": "src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.MessageMode.Windows.cs",
127
+ "diffHunk": "@@ -0,0 +1,106 @@\n+// Licensed to the .NET Foundation under one or more agreements.\n+// The .NET Foundation licenses this file to you under the MIT license.\n+\n+using System.Collections.Generic;\n+using System.IO.Tests;\n+using System.Linq;\n+using System.Runtime.InteropServices;\n+using System.Threading;\n+using System.Threading.Tasks;\n+using Xunit;\n+\n+namespace System.IO.Pipes.Tests\n+{\n+ // Support for PipeAccessRights and setting ReadMode to Message is only supported on Windows\n+ public class NamedPipeTest_MessageMode_Windows\n+ {\n+ private const PipeAccessRights MinimumMessageAccessRights = PipeAccessRights.ReadData | PipeAccessRights.WriteAttributes;\n+\n+ private static NamedPipeClientStream CreateClientStream(string pipeName, PipeOptions options) =>\n+ new NamedPipeClientStream(\".\", pipeName, MinimumMessageAccessRights, options, Security.Principal.TokenImpersonationLevel.None, HandleInheritability.None);\n+\n+ [Theory]\n+ [InlineData(PipeDirection.Out, PipeOptions.None)]\n+ [InlineData(PipeDirection.InOut, PipeOptions.Asynchronous)]\n+ public async Task Client_DetectsMessageCompleted(PipeDirection serverDirection, PipeOptions options)\n+ {\n+ string pipeName = PipeStreamConformanceTests.GetUniquePipeName();\n+\n+ using NamedPipeServerStream server = new NamedPipeServerStream(pipeName, serverDirection, 1, PipeTransmissionMode.Message, options);\n+ using NamedPipeClientStream client = CreateClientStream(pipeName, options);\n+\n+ Task.WaitAll(server.WaitForConnectionAsync(), client.ConnectAsync());\n+ client.ReadMode = PipeTransmissionMode.Message;\n+\n+ ValueTask serverWrite = server.WriteAsync(new byte[] { 1, 2, 3, 4, 5 });\n+\n+ byte[] buffer1 = new byte[2], buffer2 = new byte[2], buffer3 = new byte[2];\n+ bool[] messageCompleted = new bool[3];\n+\n+ int bytesRead = client.Read(buffer1, 0, 2);\n+ messageCompleted[0] = client.IsMessageComplete;\n+\n+ bytesRead += client.Read(buffer2, 0, 2);\n+ messageCompleted[1] = client.IsMessageComplete;\n+\n+ bytesRead += client.Read(buffer3, 0, 2);\n+ messageCompleted[2] = client.IsMessageComplete;\n+\n+ Assert.Equal(5, bytesRead);\n+ Assert.Equal(new byte[] { 1, 2, 3, 4, 5, 0 }, buffer1.Concat(buffer2).Concat(buffer3));\n+ Assert.Equal(new bool[] { false, false, true }, messageCompleted);\n+\n+ await serverWrite;\n+ }\n+\n+ [Theory]\n+ [InlineData(PipeTransmissionMode.Byte, PipeOptions.None)]\n+ [InlineData(PipeTransmissionMode.Message, PipeOptions.None)]\n+ [InlineData(PipeTransmissionMode.Byte, PipeOptions.Asynchronous)]\n+ [InlineData(PipeTransmissionMode.Message, PipeOptions.Asynchronous)]\n+ public void ServerIn_ClientConnect_Throws(PipeTransmissionMode serverMode, PipeOptions options)\n+ {\n+ string pipeName = PipeStreamConformanceTests.GetUniquePipeName();\n+\n+ using NamedPipeServerStream server = new NamedPipeServerStream(pipeName, PipeDirection.In, 1, serverMode, options);\n+ using NamedPipeClientStream client = CreateClientStream(pipeName, options);\n+\n+ Assert.Throws<UnauthorizedAccessException>(() => client.Connect());\n+ }\n+\n+ [Theory]\n+ [InlineData(PipeDirection.Out, PipeTransmissionMode.Byte, PipeOptions.None)]\n+ [InlineData(PipeDirection.Out, PipeTransmissionMode.Byte, PipeOptions.Asynchronous)]\n+ [InlineData(PipeDirection.InOut, PipeTransmissionMode.Byte, PipeOptions.None)]\n+ [InlineData(PipeDirection.InOut, PipeTransmissionMode.Byte, PipeOptions.Asynchronous)]\n+ public async Task ServerByteMode_ClientReadModeMessage_Throws(PipeDirection serverDirection, PipeTransmissionMode serverMode, PipeOptions options)\n+ {\n+ string pipeName = PipeStreamConformanceTests.GetUniquePipeName();\n+\n+ using NamedPipeServerStream server = new NamedPipeServerStream(pipeName, serverDirection, 1, serverMode, options);\n+ using NamedPipeClientStream client = CreateClientStream(pipeName, options);\n+\n+ Task serverConnected = server.WaitForConnectionAsync();\n+ client.Connect();\n+ await serverConnected;",
128
+ "body": "Similar question here. I think the `WaitForConnectionAsync` method invocation has to be awaited here, not in line 85.\r\n\r\nAdditionally, if the server async methods are being called, I would also call the client async methods. In line 84, I would call `await client.ConnectAsync();`\r\n",
129
+ "createdAt": "2024-03-23T00:17:33Z"
130
+ },
131
+ {
132
+ "path": "src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.MessageMode.Windows.cs",
133
+ "diffHunk": "@@ -0,0 +1,106 @@\n+// Licensed to the .NET Foundation under one or more agreements.\n+// The .NET Foundation licenses this file to you under the MIT license.\n+\n+using System.Collections.Generic;\n+using System.IO.Tests;\n+using System.Linq;\n+using System.Runtime.InteropServices;\n+using System.Threading;\n+using System.Threading.Tasks;\n+using Xunit;\n+\n+namespace System.IO.Pipes.Tests\n+{\n+ // Support for PipeAccessRights and setting ReadMode to Message is only supported on Windows\n+ public class NamedPipeTest_MessageMode_Windows\n+ {\n+ private const PipeAccessRights MinimumMessageAccessRights = PipeAccessRights.ReadData | PipeAccessRights.WriteAttributes;\n+\n+ private static NamedPipeClientStream CreateClientStream(string pipeName, PipeOptions options) =>\n+ new NamedPipeClientStream(\".\", pipeName, MinimumMessageAccessRights, options, Security.Principal.TokenImpersonationLevel.None, HandleInheritability.None);\n+\n+ [Theory]\n+ [InlineData(PipeDirection.Out, PipeOptions.None)]\n+ [InlineData(PipeDirection.InOut, PipeOptions.Asynchronous)]\n+ public async Task Client_DetectsMessageCompleted(PipeDirection serverDirection, PipeOptions options)\n+ {\n+ string pipeName = PipeStreamConformanceTests.GetUniquePipeName();\n+\n+ using NamedPipeServerStream server = new NamedPipeServerStream(pipeName, serverDirection, 1, PipeTransmissionMode.Message, options);\n+ using NamedPipeClientStream client = CreateClientStream(pipeName, options);\n+\n+ Task.WaitAll(server.WaitForConnectionAsync(), client.ConnectAsync());\n+ client.ReadMode = PipeTransmissionMode.Message;\n+\n+ ValueTask serverWrite = server.WriteAsync(new byte[] { 1, 2, 3, 4, 5 });\n+\n+ byte[] buffer1 = new byte[2], buffer2 = new byte[2], buffer3 = new byte[2];\n+ bool[] messageCompleted = new bool[3];\n+\n+ int bytesRead = client.Read(buffer1, 0, 2);\n+ messageCompleted[0] = client.IsMessageComplete;\n+\n+ bytesRead += client.Read(buffer2, 0, 2);\n+ messageCompleted[1] = client.IsMessageComplete;\n+\n+ bytesRead += client.Read(buffer3, 0, 2);\n+ messageCompleted[2] = client.IsMessageComplete;\n+\n+ Assert.Equal(5, bytesRead);\n+ Assert.Equal(new byte[] { 1, 2, 3, 4, 5, 0 }, buffer1.Concat(buffer2).Concat(buffer3));\n+ Assert.Equal(new bool[] { false, false, true }, messageCompleted);\n+\n+ await serverWrite;\n+ }\n+\n+ [Theory]\n+ [InlineData(PipeTransmissionMode.Byte, PipeOptions.None)]\n+ [InlineData(PipeTransmissionMode.Message, PipeOptions.None)]\n+ [InlineData(PipeTransmissionMode.Byte, PipeOptions.Asynchronous)]\n+ [InlineData(PipeTransmissionMode.Message, PipeOptions.Asynchronous)]\n+ public void ServerIn_ClientConnect_Throws(PipeTransmissionMode serverMode, PipeOptions options)\n+ {\n+ string pipeName = PipeStreamConformanceTests.GetUniquePipeName();\n+\n+ using NamedPipeServerStream server = new NamedPipeServerStream(pipeName, PipeDirection.In, 1, serverMode, options);\n+ using NamedPipeClientStream client = CreateClientStream(pipeName, options);\n+\n+ Assert.Throws<UnauthorizedAccessException>(() => client.Connect());\n+ }\n+\n+ [Theory]\n+ [InlineData(PipeDirection.Out, PipeTransmissionMode.Byte, PipeOptions.None)]\n+ [InlineData(PipeDirection.Out, PipeTransmissionMode.Byte, PipeOptions.Asynchronous)]\n+ [InlineData(PipeDirection.InOut, PipeTransmissionMode.Byte, PipeOptions.None)]\n+ [InlineData(PipeDirection.InOut, PipeTransmissionMode.Byte, PipeOptions.Asynchronous)]\n+ public async Task ServerByteMode_ClientReadModeMessage_Throws(PipeDirection serverDirection, PipeTransmissionMode serverMode, PipeOptions options)\n+ {\n+ string pipeName = PipeStreamConformanceTests.GetUniquePipeName();\n+\n+ using NamedPipeServerStream server = new NamedPipeServerStream(pipeName, serverDirection, 1, serverMode, options);\n+ using NamedPipeClientStream client = CreateClientStream(pipeName, options);\n+\n+ Task serverConnected = server.WaitForConnectionAsync();\n+ client.Connect();\n+ await serverConnected;",
134
+ "body": "We need to have _at least one_ end of the pipe connect asynchronously so that execution isn't blocked and the other side of the connection can be made. As soon as both sides connect, the awaited tasks are completed. The approach here lets me establish that connection and proceed.\r\n\r\nI did use `Task.WaitAll(server.WaitForConnectionAsync(), client.ConnectAsync())` elsewhere though, so I can standardize on that so it's clearer.",
135
+ "createdAt": "2024-03-26T05:13:30Z"
136
+ }
137
+ ]
138
+ }
139
+ },
140
+ {
141
+ "comments": {
142
+ "nodes": [
143
+ {
144
+ "path": "src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.MessageMode.Windows.cs",
145
+ "diffHunk": "@@ -0,0 +1,106 @@\n+// Licensed to the .NET Foundation under one or more agreements.\n+// The .NET Foundation licenses this file to you under the MIT license.\n+\n+using System.Collections.Generic;\n+using System.IO.Tests;\n+using System.Linq;\n+using System.Runtime.InteropServices;\n+using System.Threading;\n+using System.Threading.Tasks;\n+using Xunit;\n+\n+namespace System.IO.Pipes.Tests\n+{\n+ // Support for PipeAccessRights and setting ReadMode to Message is only supported on Windows\n+ public class NamedPipeTest_MessageMode_Windows\n+ {\n+ private const PipeAccessRights MinimumMessageAccessRights = PipeAccessRights.ReadData | PipeAccessRights.WriteAttributes;\n+\n+ private static NamedPipeClientStream CreateClientStream(string pipeName, PipeOptions options) =>\n+ new NamedPipeClientStream(\".\", pipeName, MinimumMessageAccessRights, options, Security.Principal.TokenImpersonationLevel.None, HandleInheritability.None);\n+\n+ [Theory]\n+ [InlineData(PipeDirection.Out, PipeOptions.None)]\n+ [InlineData(PipeDirection.InOut, PipeOptions.Asynchronous)]\n+ public async Task Client_DetectsMessageCompleted(PipeDirection serverDirection, PipeOptions options)\n+ {\n+ string pipeName = PipeStreamConformanceTests.GetUniquePipeName();\n+\n+ using NamedPipeServerStream server = new NamedPipeServerStream(pipeName, serverDirection, 1, PipeTransmissionMode.Message, options);\n+ using NamedPipeClientStream client = CreateClientStream(pipeName, options);\n+\n+ Task.WaitAll(server.WaitForConnectionAsync(), client.ConnectAsync());\n+ client.ReadMode = PipeTransmissionMode.Message;\n+\n+ ValueTask serverWrite = server.WriteAsync(new byte[] { 1, 2, 3, 4, 5 });\n+\n+ byte[] buffer1 = new byte[2], buffer2 = new byte[2], buffer3 = new byte[2];\n+ bool[] messageCompleted = new bool[3];\n+\n+ int bytesRead = client.Read(buffer1, 0, 2);\n+ messageCompleted[0] = client.IsMessageComplete;\n+\n+ bytesRead += client.Read(buffer2, 0, 2);\n+ messageCompleted[1] = client.IsMessageComplete;\n+\n+ bytesRead += client.Read(buffer3, 0, 2);\n+ messageCompleted[2] = client.IsMessageComplete;\n+\n+ Assert.Equal(5, bytesRead);\n+ Assert.Equal(new byte[] { 1, 2, 3, 4, 5, 0 }, buffer1.Concat(buffer2).Concat(buffer3));\n+ Assert.Equal(new bool[] { false, false, true }, messageCompleted);\n+\n+ await serverWrite;\n+ }\n+\n+ [Theory]\n+ [InlineData(PipeTransmissionMode.Byte, PipeOptions.None)]\n+ [InlineData(PipeTransmissionMode.Message, PipeOptions.None)]\n+ [InlineData(PipeTransmissionMode.Byte, PipeOptions.Asynchronous)]\n+ [InlineData(PipeTransmissionMode.Message, PipeOptions.Asynchronous)]\n+ public void ServerIn_ClientConnect_Throws(PipeTransmissionMode serverMode, PipeOptions options)\n+ {\n+ string pipeName = PipeStreamConformanceTests.GetUniquePipeName();\n+\n+ using NamedPipeServerStream server = new NamedPipeServerStream(pipeName, PipeDirection.In, 1, serverMode, options);\n+ using NamedPipeClientStream client = CreateClientStream(pipeName, options);\n+\n+ Assert.Throws<UnauthorizedAccessException>(() => client.Connect());\n+ }\n+\n+ [Theory]\n+ [InlineData(PipeDirection.Out, PipeTransmissionMode.Byte, PipeOptions.None)]\n+ [InlineData(PipeDirection.Out, PipeTransmissionMode.Byte, PipeOptions.Asynchronous)]\n+ [InlineData(PipeDirection.InOut, PipeTransmissionMode.Byte, PipeOptions.None)]\n+ [InlineData(PipeDirection.InOut, PipeTransmissionMode.Byte, PipeOptions.Asynchronous)]\n+ public async Task ServerByteMode_ClientReadModeMessage_Throws(PipeDirection serverDirection, PipeTransmissionMode serverMode, PipeOptions options)\n+ {\n+ string pipeName = PipeStreamConformanceTests.GetUniquePipeName();\n+\n+ using NamedPipeServerStream server = new NamedPipeServerStream(pipeName, serverDirection, 1, serverMode, options);\n+ using NamedPipeClientStream client = CreateClientStream(pipeName, options);\n+\n+ Task serverConnected = server.WaitForConnectionAsync();\n+ client.Connect();\n+ await serverConnected;\n+\n+ Assert.Throws<IOException>(() => client.ReadMode = PipeTransmissionMode.Message);\n+ }\n+\n+ [Fact]\n+ public async Task PipeAccessRights_Without_WriteAttributes_ClientReadModeMessage_Throws()\n+ {\n+ string pipeName = PipeStreamConformanceTests.GetUniquePipeName();\n+ PipeAccessRights rights = MinimumMessageAccessRights & ~PipeAccessRights.WriteAttributes;\n+\n+ using NamedPipeServerStream server = new NamedPipeServerStream(pipeName, PipeDirection.InOut, 1, PipeTransmissionMode.Message);\n+ using NamedPipeClientStream client = new NamedPipeClientStream(\".\", pipeName, rights, PipeOptions.None, Security.Principal.TokenImpersonationLevel.None, HandleInheritability.None);\n+\n+ Task serverConnected = server.WaitForConnectionAsync();\n+ client.Connect();\n+ await serverConnected;",
146
+ "body": "Ditto.\r\n\r\nIt would be nice to see synchronous methods and asynchronous methods doing the same logic. Similar to System.Formats.Tar: we have files to test the async methods only, and files to test the sync methods only, but never intermixed. Here we don't need separate files, they can be added to the same file. The async methods need to end with the *Async suffix.",
147
+ "createdAt": "2024-03-23T00:19:27Z"
148
+ },
149
+ {
150
+ "path": "src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.MessageMode.Windows.cs",
151
+ "diffHunk": "@@ -0,0 +1,106 @@\n+// Licensed to the .NET Foundation under one or more agreements.\n+// The .NET Foundation licenses this file to you under the MIT license.\n+\n+using System.Collections.Generic;\n+using System.IO.Tests;\n+using System.Linq;\n+using System.Runtime.InteropServices;\n+using System.Threading;\n+using System.Threading.Tasks;\n+using Xunit;\n+\n+namespace System.IO.Pipes.Tests\n+{\n+ // Support for PipeAccessRights and setting ReadMode to Message is only supported on Windows\n+ public class NamedPipeTest_MessageMode_Windows\n+ {\n+ private const PipeAccessRights MinimumMessageAccessRights = PipeAccessRights.ReadData | PipeAccessRights.WriteAttributes;\n+\n+ private static NamedPipeClientStream CreateClientStream(string pipeName, PipeOptions options) =>\n+ new NamedPipeClientStream(\".\", pipeName, MinimumMessageAccessRights, options, Security.Principal.TokenImpersonationLevel.None, HandleInheritability.None);\n+\n+ [Theory]\n+ [InlineData(PipeDirection.Out, PipeOptions.None)]\n+ [InlineData(PipeDirection.InOut, PipeOptions.Asynchronous)]\n+ public async Task Client_DetectsMessageCompleted(PipeDirection serverDirection, PipeOptions options)\n+ {\n+ string pipeName = PipeStreamConformanceTests.GetUniquePipeName();\n+\n+ using NamedPipeServerStream server = new NamedPipeServerStream(pipeName, serverDirection, 1, PipeTransmissionMode.Message, options);\n+ using NamedPipeClientStream client = CreateClientStream(pipeName, options);\n+\n+ Task.WaitAll(server.WaitForConnectionAsync(), client.ConnectAsync());\n+ client.ReadMode = PipeTransmissionMode.Message;\n+\n+ ValueTask serverWrite = server.WriteAsync(new byte[] { 1, 2, 3, 4, 5 });\n+\n+ byte[] buffer1 = new byte[2], buffer2 = new byte[2], buffer3 = new byte[2];\n+ bool[] messageCompleted = new bool[3];\n+\n+ int bytesRead = client.Read(buffer1, 0, 2);\n+ messageCompleted[0] = client.IsMessageComplete;\n+\n+ bytesRead += client.Read(buffer2, 0, 2);\n+ messageCompleted[1] = client.IsMessageComplete;\n+\n+ bytesRead += client.Read(buffer3, 0, 2);\n+ messageCompleted[2] = client.IsMessageComplete;\n+\n+ Assert.Equal(5, bytesRead);\n+ Assert.Equal(new byte[] { 1, 2, 3, 4, 5, 0 }, buffer1.Concat(buffer2).Concat(buffer3));\n+ Assert.Equal(new bool[] { false, false, true }, messageCompleted);\n+\n+ await serverWrite;\n+ }\n+\n+ [Theory]\n+ [InlineData(PipeTransmissionMode.Byte, PipeOptions.None)]\n+ [InlineData(PipeTransmissionMode.Message, PipeOptions.None)]\n+ [InlineData(PipeTransmissionMode.Byte, PipeOptions.Asynchronous)]\n+ [InlineData(PipeTransmissionMode.Message, PipeOptions.Asynchronous)]\n+ public void ServerIn_ClientConnect_Throws(PipeTransmissionMode serverMode, PipeOptions options)\n+ {\n+ string pipeName = PipeStreamConformanceTests.GetUniquePipeName();\n+\n+ using NamedPipeServerStream server = new NamedPipeServerStream(pipeName, PipeDirection.In, 1, serverMode, options);\n+ using NamedPipeClientStream client = CreateClientStream(pipeName, options);\n+\n+ Assert.Throws<UnauthorizedAccessException>(() => client.Connect());\n+ }\n+\n+ [Theory]\n+ [InlineData(PipeDirection.Out, PipeTransmissionMode.Byte, PipeOptions.None)]\n+ [InlineData(PipeDirection.Out, PipeTransmissionMode.Byte, PipeOptions.Asynchronous)]\n+ [InlineData(PipeDirection.InOut, PipeTransmissionMode.Byte, PipeOptions.None)]\n+ [InlineData(PipeDirection.InOut, PipeTransmissionMode.Byte, PipeOptions.Asynchronous)]\n+ public async Task ServerByteMode_ClientReadModeMessage_Throws(PipeDirection serverDirection, PipeTransmissionMode serverMode, PipeOptions options)\n+ {\n+ string pipeName = PipeStreamConformanceTests.GetUniquePipeName();\n+\n+ using NamedPipeServerStream server = new NamedPipeServerStream(pipeName, serverDirection, 1, serverMode, options);\n+ using NamedPipeClientStream client = CreateClientStream(pipeName, options);\n+\n+ Task serverConnected = server.WaitForConnectionAsync();\n+ client.Connect();\n+ await serverConnected;\n+\n+ Assert.Throws<IOException>(() => client.ReadMode = PipeTransmissionMode.Message);\n+ }\n+\n+ [Fact]\n+ public async Task PipeAccessRights_Without_WriteAttributes_ClientReadModeMessage_Throws()\n+ {\n+ string pipeName = PipeStreamConformanceTests.GetUniquePipeName();\n+ PipeAccessRights rights = MinimumMessageAccessRights & ~PipeAccessRights.WriteAttributes;\n+\n+ using NamedPipeServerStream server = new NamedPipeServerStream(pipeName, PipeDirection.InOut, 1, PipeTransmissionMode.Message);\n+ using NamedPipeClientStream client = new NamedPipeClientStream(\".\", pipeName, rights, PipeOptions.None, Security.Principal.TokenImpersonationLevel.None, HandleInheritability.None);\n+\n+ Task serverConnected = server.WaitForConnectionAsync();\n+ client.Connect();\n+ await serverConnected;",
152
+ "body": "These tests are focused on the message mode itself, not the aspect of making connections, so I'll leave that out of scope to ensure all combinations of sync/async connections are covered. But I'll standardize onto `Task.WaitAll(server.WaitForConnectionAsync(), client.ConnectAsync())` instead of mixing sync/async to make it more readable.\r\n\r\nSince the access rights overload throws on non-Windows platforms, I'll keep these tests in a separate file too (otherwise, they'd need to all be `[PlatformSpecific(TestPlatforms.Windows)]`).",
153
+ "createdAt": "2024-03-26T05:17:55Z"
154
+ }
155
+ ]
156
+ }
157
+ }
158
+ ]
159
+ },
160
+ "commits": {
161
+ "totalCount": 7,
162
+ "nodes": [
163
+ {
164
+ "commit": {
165
+ "oid": "6ca147bf996f585931b64177096050d837b9ef1e",
166
+ "message": "Support setting NamedPipeClientStream.ReadMode with PipeAccessRights ctor overload",
167
+ "committedDate": "2024-03-20T09:09:23Z"
168
+ }
169
+ },
170
+ {
171
+ "commit": {
172
+ "oid": "d5eacc149076afd03f3d53323be1602da2dc694e",
173
+ "message": "Add API doc comments for new constructor (and fix placement of comment)",
174
+ "committedDate": "2024-03-20T09:24:24Z"
175
+ }
176
+ },
177
+ {
178
+ "commit": {
179
+ "oid": "5bdf1c858a4ad483a6653e62886847b2f0feee34",
180
+ "message": "Add more tests including functional tests. Fill an argument validation gap.",
181
+ "committedDate": "2024-03-22T01:09:57Z"
182
+ }
183
+ },
184
+ {
185
+ "commit": {
186
+ "oid": "2cfb092d293dd126e2b02b68aa80c91c98351396",
187
+ "message": "Merge branch 'main' into jeffhandley/namedpipe-readmode",
188
+ "committedDate": "2024-03-22T06:19:36Z"
189
+ }
190
+ },
191
+ {
192
+ "commit": {
193
+ "oid": "6d7aad7900110947ee565a0bc7bb111ab29b8759",
194
+ "message": "Remove old ApiCompat suppression from PipeAccessRights",
195
+ "committedDate": "2024-03-22T06:30:59Z"
196
+ }
197
+ },
198
+ {
199
+ "commit": {
200
+ "oid": "8c0a19e05cc847fac12bac17d06d5038882c7dd0",
201
+ "message": "Make new tests more readable per PR feedback",
202
+ "committedDate": "2024-03-26T05:47:08Z"
203
+ }
204
+ },
205
+ {
206
+ "commit": {
207
+ "oid": "481df95464dc298e111fc9b3e3e0659f8ad82b99",
208
+ "message": "Merge branch 'main' into jeffhandley/namedpipe-readmode",
209
+ "committedDate": "2024-03-26T23:02:29Z"
210
+ }
211
+ }
212
+ ]
213
+ }
214
+ }
data/raw_sample/prs/pr-100002.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 100002,
3
+ "title": "Skip ro segments which are not in range when walking heap for GC diagnostics",
4
+ "body": "Fixed crash in gc_heap::walk_heap_per_heap when walking frozen segments\r\n\r\n**Motivation:**\r\n\r\nEnabling `COR_PRF_MONITOR_GC` GC Heap diagnostics flag causes crash after initiating AssemblyLoadContext unloading with the following callstack.\r\n\r\n```\r\n[Inline Frame] coreclr.dll!WKS::my_get_size(Object *) Line 11572\tC++\tSymbols loaded.\r\n>\tcoreclr.dll!WKS::gc_heap::walk_heap_per_heap(bool(*)(Object *, void *) fn, void * context, int gen_number, int walk_large_object_heap_p) Line 51974\tC++\tSymbols loaded.\r\n \tcoreclr.dll!GCProfileWalkHeapWorker(int fProfilerPinned, int fShouldWalkHeapRootsForEtw, int fShouldWalkHeapObjectsForEtw) Line 727\tC++\tSymbols loaded.\r\n \tcoreclr.dll!GCToEEInterface::DiagGCEnd(unsigned __int64 fConcurrent, int index, int gen, bool reason) Line 818\tC++\tSymbols loaded.\r\n \tcoreclr.dll!WKS::gc_heap::do_post_gc() Line 50183\tC++\tSymbols loaded.\r\n \tcoreclr.dll!WKS::gc_heap::gc1() Line 22865\tC++\tSymbols loaded.\r\n \t[Inline Frame] coreclr.dll!GCToOSInterface::GetLowPrecisionTimeStamp() Line 1091\tC++\tSymbols loaded.\r\n \tcoreclr.dll!WKS::gc_heap::garbage_collect(int n) Line 24329\tC++\tSymbols loaded.\r\n \tcoreclr.dll!WKS::GCHeap::GarbageCollectGeneration(unsigned int gen, gc_reason reason) Line 50526\tC++\tSymbols loaded.\r\n \tcoreclr.dll!WKS::GCHeap::GarbageCollect(int generation, bool low_memory_p, int mode) Line 49681\tC++\tSymbols loaded.\r\n \tcoreclr.dll!ETW::GCLog::ForceGCForDiagnostics() Line 492\tC++\tSymbols loaded.\r\n \t[Inline Frame] coreclr.dll!ETW::GCLog::ForceGC(__int64) Line 431\tC++\t\r\n```\r\n\r\nI was suspecting invalid profiler setup, however the issue was also reproducible with [PerfView](https://github.com/microsoft/perfview) tool without enabling `COR_PRF_MONITOR_GC` flag via profiler dll at startup - tool crashes on GC Heap dump once one of assemblies from AssemblyLoadContext gets unloaded.\r\n\r\nI was suspecting then heap corruption, but was not able to gather any proof of that by running `gc::verify_heap` every GC and native/managed transition (the latter was painfully slow 😁). Further comparison with `gc::verify_heap` yielded that heap verification uses `heap_segment_in_range/heap_segment_next_in_range` methods [to get the heap segment to iterate over](https://github.com/dotnet/runtime/blob/main/src/coreclr/gc/gc.cpp#L47873). `heap_segment_in_range` checks that segment is not readonly/frozen (`heap_segment_flags_readonly` flag) or if it is “in range” (`heap_segment_flags_inrange` flag). At the same time `gc_heap::walk_heap_per_heap` scans through all segments.\r\n\r\n**Changes**:\r\n\r\nMy hypothesis is that assembly unloading may free/rollback segments that are used for string/type/etc data in frozen segments and thus we need to skip such segments when traversing heap for diagnostics. I might be wrong given my limited understanding of `USE_RANGES` feature and would appreciate other ideas 😄 ",
5
+ "createdAt": "2024-03-20T09:15:59Z",
6
+ "closedAt": "2024-03-29T16:36:08Z",
7
+ "mergedAt": null,
8
+ "state": "CLOSED",
9
+ "author": {
10
+ "login": "alexey-zakharov"
11
+ },
12
+ "labels": {
13
+ "nodes": [
14
+ {
15
+ "name": "area-GC-coreclr"
16
+ },
17
+ {
18
+ "name": "community-contribution"
19
+ }
20
+ ]
21
+ },
22
+ "headRefName": "upstream-walk_heap-skip-frozen-segments",
23
+ "additions": 5,
24
+ "deletions": 5,
25
+ "changedFiles": 1,
26
+ "comments": {
27
+ "totalCount": 10,
28
+ "nodes": [
29
+ {
30
+ "body": "Tagging subscribers to this area: @dotnet/gc\nSee info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed.\n<!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->",
31
+ "createdAt": "2024-03-20T09:16:29Z"
32
+ },
33
+ {
34
+ "body": "@dotnet-policy-service agree company=\"Unity Technologies\"",
35
+ "createdAt": "2024-03-20T09:24:34Z"
36
+ },
37
+ {
38
+ "body": "cc @cshung \r\n\r\n> My hypothesis is that assembly unloading may free/rollback segments that are used for string/type/etc data in frozen segments\r\n\r\nWe currently never unregister/remove such segments and never put stuff from unloadable ALCs there 🤔 ",
39
+ "createdAt": "2024-03-20T15:33:07Z"
40
+ },
41
+ {
42
+ "body": "> We currently never unregister/remove such segments and never put stuff from unloadable ALCs there 🤔\r\n\r\nthanks! ok, then my understanding was wrong and perhaps we do have segments corruption or there is another mechanism that may unmark segments\r\nin case of corruption the question then would be how to diagnose it assuming verify_heap skips such segments and never crashes? 🤔 (perhaps protect frozen segments memory with READONLY flag)",
43
+ "createdAt": "2024-03-20T15:43:51Z"
44
+ },
45
+ {
46
+ "body": "@alexey-zakharov, is the crash something you can share with us a repro?",
47
+ "createdAt": "2024-03-20T16:34:43Z"
48
+ },
49
+ {
50
+ "body": "> @alexey-zakharov, is the crash something you can share with us a repro?\r\n\r\n@cshung yes, I think so - do you know what are the guidelines for sharing?\r\nand should I make an issue instead?",
51
+ "createdAt": "2024-03-21T08:41:47Z"
52
+ },
53
+ {
54
+ "body": "> Do you know what are the guidelines for sharing? and should I make an issue instead?\r\n\r\nThanks for planning to share! I don't think we have guidelines for sharing repro, but we have a template for opening bug issues and there are some general questions that you can answer there.\r\n\r\nhttps://github.com/dotnet/runtime/issues/new?assignees=&labels=&projects=&template=01_bug_report.yml",
55
+ "createdAt": "2024-03-21T17:57:04Z"
56
+ },
57
+ {
58
+ "body": "Is this superseded by https://github.com/dotnet/runtime/pull/100444 ?",
59
+ "createdAt": "2024-03-29T16:21:46Z"
60
+ },
61
+ {
62
+ "body": "> Is this superseded by #100444 ?\r\n\r\nyes, I've dug deeper into the issue and we've figured a better fix\r\nI'm closing this PR",
63
+ "createdAt": "2024-03-29T16:36:08Z"
64
+ },
65
+ {
66
+ "body": "(the real issue we had was that SzArray of a collectible type was allocated on a frozen heap and once LoaderAllocator gets destroyed object's MethodTable points to a bad memory which leads to random consequences when iterating heap)",
67
+ "createdAt": "2024-03-29T16:39:12Z"
68
+ }
69
+ ]
70
+ },
71
+ "reviewThreads": {
72
+ "totalCount": 0,
73
+ "nodes": []
74
+ },
75
+ "commits": {
76
+ "totalCount": 1,
77
+ "nodes": [
78
+ {
79
+ "commit": {
80
+ "oid": "397d04883ccec635d21d6891c4beea3cd26150bd",
81
+ "message": "Skip ro segments which are not in range when walking heap for GC diagnostics",
82
+ "committedDate": "2024-03-20T09:09:08Z"
83
+ }
84
+ }
85
+ ]
86
+ }
87
+ }
data/raw_sample/prs/pr-100004.json ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 100004,
3
+ "title": "Include versions and checksums in VMR publishing and remove prepare-artifacts.proj",
4
+ "body": "Fixes https://github.com/dotnet/source-build/issues/4239\r\n\r\nFollows the pattern that we established in windowsdesktop: https://github.com/dotnet/windowsdesktop/blob/main/eng/Publishing.props\r\n\r\n**Important: No Merge until I verified the changes in a runtime official build and a VMR build.**\r\n\r\nRuntime official build: https://dnceng.visualstudio.com/internal/_build/results?buildId=2414748&view=results",
5
+ "createdAt": "2024-03-20T09:44:23Z",
6
+ "closedAt": "2024-11-29T08:36:33Z",
7
+ "mergedAt": null,
8
+ "state": "CLOSED",
9
+ "author": {
10
+ "login": "ViktorHofer"
11
+ },
12
+ "labels": {
13
+ "nodes": [
14
+ {
15
+ "name": "NO-MERGE"
16
+ },
17
+ {
18
+ "name": "area-Infrastructure-libraries"
19
+ }
20
+ ]
21
+ },
22
+ "headRefName": "ViktorHofer-patch-1",
23
+ "additions": 223,
24
+ "deletions": 500,
25
+ "changedFiles": 14,
26
+ "comments": {
27
+ "totalCount": 0,
28
+ "nodes": []
29
+ },
30
+ "reviewThreads": {
31
+ "totalCount": 6,
32
+ "nodes": [
33
+ {
34
+ "comments": {
35
+ "nodes": [
36
+ {
37
+ "path": "src/native/corehost/corehost.proj",
38
+ "diffHunk": "@@ -8,7 +8,7 @@\n \n <PropertyGroup>\n <IncrementalNativeBuild Condition=\"'$(IncrementalNativeBuild)' == ''\">true</IncrementalNativeBuild>\n- <BuildCoreHostDependsOn>GetProductVersions;GenerateRuntimeVersionFile</BuildCoreHostDependsOn>\n+ <BuildCoreHostDependsOn>GenerateRuntimeVersionFile</BuildCoreHostDependsOn>",
39
+ "body": "I checked and I couldn't find a place under src/native that still depended on the `GetProductVersions` target.",
40
+ "createdAt": "2024-03-25T14:02:05Z"
41
+ }
42
+ ]
43
+ }
44
+ },
45
+ {
46
+ "comments": {
47
+ "nodes": [
48
+ {
49
+ "path": "src/mono/wasm/templates/Microsoft.NET.Runtime.WebAssembly.Templates.csproj",
50
+ "diffHunk": "@@ -24,10 +24,5 @@\n \n <Target Name=\"CreateManifestResourceNames\" />\n <Target Name=\"CoreCompile\" />\n- <Target Name=\"_SetProductVersion\" DependsOnTargets=\"GetProductVersions\" BeforeTargets=\"Pack\">\n- <PropertyGroup>\n- <PackageVersion>$(ProductVersion)</PackageVersion>\n- </PropertyGroup>\n- </Target>",
51
+ "body": "From what I could see, this setting shouldn't be necessary as PackageVersion is already automatically set by Arcade.",
52
+ "createdAt": "2024-03-25T14:03:07Z"
53
+ }
54
+ ]
55
+ }
56
+ },
57
+ {
58
+ "comments": {
59
+ "nodes": [
60
+ {
61
+ "path": "src/mono/browser/browser.proj",
62
+ "diffHunk": "@@ -533,12 +533,20 @@\n <_RollupInputs Include=\"$(BrowserProjectRoot)runtime/*.js\"/>\n </ItemGroup>\n \n- <Target Name=\"SetMonoRollupEnvironment\" DependsOnTargets=\"GetProductVersions\">\n+ <Target Name=\"SetMonoRollupEnvironment\">\n+ <!-- Retrieve the runtime pack product version. -->\n+ <MSBuild Projects=\"$(RepoRoot)src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.sfxproj\"\n+ Targets=\"ReturnProductVersion\"\n+ Properties=\"Crossgen2SdkOverridePropsPath=;\n+ Crossgen2SdkOverrideTargetsPath=\">\n+ <Output TaskParameter=\"TargetOutputs\" PropertyName=\"RuntimePackProductVersion\" />\n+ </MSBuild>\n+\n <ItemGroup>\n <_MonoRollupEnvironmentVariable Include=\"Configuration:$(Configuration)\" />\n <_MonoRollupEnvironmentVariable Include=\"NativeBinDir:$(NativeBinDir)\" />\n <_MonoRollupEnvironmentVariable Include=\"WasmObjDir:$(WasmObjDir)\" />\n- <_MonoRollupEnvironmentVariable Include=\"ProductVersion:$(ProductVersion)\" />\n+ <_MonoRollupEnvironmentVariable Include=\"ProductVersion:$(RuntimePackProductVersion)\" />",
63
+ "body": "Calling into sfxproj to retrieve the version felt safer than just relying on PackageVersion here in case this project sets IsShipping or any other properties already or in the future.",
64
+ "createdAt": "2024-03-25T14:03:56Z"
65
+ }
66
+ ]
67
+ }
68
+ },
69
+ {
70
+ "comments": {
71
+ "nodes": [
72
+ {
73
+ "path": "src/installer/tests/Directory.Build.targets",
74
+ "diffHunk": "@@ -37,7 +37,6 @@\n <Target Name=\"SetupTestContextVariables\"\n Condition=\"'$(IsTestProject)' == 'true'\"\n DependsOnTargets=\"\n- GetProductVersions;",
75
+ "body": "I couldn't find any place that still depends on this target or its properties.",
76
+ "createdAt": "2024-03-25T14:04:27Z"
77
+ }
78
+ ]
79
+ }
80
+ },
81
+ {
82
+ "comments": {
83
+ "nodes": [
84
+ {
85
+ "path": "src/installer/pkg/projects/Directory.Build.targets",
86
+ "diffHunk": "@@ -16,20 +18,6 @@\n <SymbolPackageOutputPath>$(PackageOutputPath)</SymbolPackageOutputPath>\n </PropertyGroup>\n \n- <Target Name=\"SetTargetBasedPackageVersion\"\n- BeforeTargets=\"GenerateNuSpec\"\n- DependsOnTargets=\"GetProductVersions\">\n- <PropertyGroup>\n- <Version>$(ProductVersion)</Version>\n- <!--\n- PackageVersion is normally calculated using Version during static property evaluation, but\n- we need some info from GetProductVersions, so it's too late to rely on that. We need to set\n- both in target evaluation, here.\n- -->\n- <PackageVersion>$(ProductVersion)</PackageVersion>\n- </PropertyGroup>\n- </Target>\n-",
87
+ "body": "This might have been necessary in the past but AFAIK, NuGet calculates PackageVersion correctly, even for pkgprojs.",
88
+ "createdAt": "2024-03-25T14:06:13Z"
89
+ }
90
+ ]
91
+ }
92
+ },
93
+ {
94
+ "comments": {
95
+ "nodes": [
96
+ {
97
+ "path": "eng/Signing.props",
98
+ "diffHunk": "@@ -55,14 +44,30 @@\n <FileSignInfo Update=\"@(FileSignInfo->WithMetadataValue('CertificateName','Microsoft400'))\" CertificateName=\"MicrosoftDotNet500\" />\n </ItemGroup>\n \n- <ItemGroup Condition=\"'$(PrepareArtifacts)' == 'true'\">\n- <ItemsToSignWithPaths Include=\"$(DownloadDirectory)**\\*.msi\" />\n- <ItemsToSignWithPaths Include=\"$(DownloadDirectory)**\\*.exe\" />\n- <ItemsToSignWithPaths Include=\"$(DownloadDirectory)**\\*.nupkg\" />\n- <ItemsToSignWithPaths Include=\"$(DownloadDirectory)**\\*.zip\" />\n+ <!-- In build signing and publishing without a join point -->\n+ <ItemGroup Condition=\"'$(SignAndPublishAsJoinPoint)' != 'true'\">\n+ <Artifact Include=\"$(ArtifactsPackagesDir)**\\*.tar.gz;\n+ $(ArtifactsPackagesDir)**\\*.zip;\n+ $(ArtifactsPackagesDir)**\\*.deb;\n+ $(ArtifactsPackagesDir)**\\*.rpm;\n+ $(ArtifactsPackagesDir)**\\*.pkg;\n+ $(ArtifactsPackagesDir)**\\*.exe;\n+ $(ArtifactsPackagesDir)**\\*.msi\"\n+ Exclude=\"$(ArtifactsPackagesDir)**\\Symbols.runtime.tar.gz\"\n+ IsShipping=\"$([System.String]::Copy('%(RecursiveDir)').StartsWith('Shipping'))\">",
99
+ "body": "Can you point me to the docs for `ItemsToSign` vs `Artifact`? ",
100
+ "createdAt": "2024-04-01T18:39:36Z"
101
+ },
102
+ {
103
+ "path": "eng/Signing.props",
104
+ "diffHunk": "@@ -55,14 +44,30 @@\n <FileSignInfo Update=\"@(FileSignInfo->WithMetadataValue('CertificateName','Microsoft400'))\" CertificateName=\"MicrosoftDotNet500\" />\n </ItemGroup>\n \n- <ItemGroup Condition=\"'$(PrepareArtifacts)' == 'true'\">\n- <ItemsToSignWithPaths Include=\"$(DownloadDirectory)**\\*.msi\" />\n- <ItemsToSignWithPaths Include=\"$(DownloadDirectory)**\\*.exe\" />\n- <ItemsToSignWithPaths Include=\"$(DownloadDirectory)**\\*.nupkg\" />\n- <ItemsToSignWithPaths Include=\"$(DownloadDirectory)**\\*.zip\" />\n+ <!-- In build signing and publishing without a join point -->\n+ <ItemGroup Condition=\"'$(SignAndPublishAsJoinPoint)' != 'true'\">\n+ <Artifact Include=\"$(ArtifactsPackagesDir)**\\*.tar.gz;\n+ $(ArtifactsPackagesDir)**\\*.zip;\n+ $(ArtifactsPackagesDir)**\\*.deb;\n+ $(ArtifactsPackagesDir)**\\*.rpm;\n+ $(ArtifactsPackagesDir)**\\*.pkg;\n+ $(ArtifactsPackagesDir)**\\*.exe;\n+ $(ArtifactsPackagesDir)**\\*.msi\"\n+ Exclude=\"$(ArtifactsPackagesDir)**\\Symbols.runtime.tar.gz\"\n+ IsShipping=\"$([System.String]::Copy('%(RecursiveDir)').StartsWith('Shipping'))\">",
105
+ "body": "Just checked Arcade and this makes sense (Artifact feeds into ItemsToSign)",
106
+ "createdAt": "2024-04-05T17:21:49Z"
107
+ }
108
+ ]
109
+ }
110
+ }
111
+ ]
112
+ },
113
+ "commits": {
114
+ "totalCount": 11,
115
+ "nodes": [
116
+ {
117
+ "commit": {
118
+ "oid": "684ff76979aeb60fc02332c769c8add360ec290c",
119
+ "message": "Include versions and checksums in VMR publishing",
120
+ "committedDate": "2024-03-20T09:43:52Z"
121
+ }
122
+ },
123
+ {
124
+ "commit": {
125
+ "oid": "df52116e7e8d3d58e7e0090c4852b19676c7028d",
126
+ "message": "Create AfterSigning.targets",
127
+ "committedDate": "2024-03-20T09:50:45Z"
128
+ }
129
+ },
130
+ {
131
+ "commit": {
132
+ "oid": "98f0bb68a01586dc01ef9b9391c95c876bdc8ea7",
133
+ "message": "Update Publishing.props",
134
+ "committedDate": "2024-03-20T09:52:39Z"
135
+ }
136
+ },
137
+ {
138
+ "commit": {
139
+ "oid": "8ec942dee98ac6812f4bf33cea76bc088e36d51b",
140
+ "message": "Update Publishing.props",
141
+ "committedDate": "2024-03-20T09:54:55Z"
142
+ }
143
+ },
144
+ {
145
+ "commit": {
146
+ "oid": "be3b37beceb99a36794c6131c6a31f8fc86f0349",
147
+ "message": "Update Publishing.props",
148
+ "committedDate": "2024-03-20T10:04:11Z"
149
+ }
150
+ },
151
+ {
152
+ "commit": {
153
+ "oid": "3e7855889467dc74d8d21926137e6c2927e5bb6b",
154
+ "message": "Update Publishing.props",
155
+ "committedDate": "2024-03-25T14:01:16Z"
156
+ }
157
+ },
158
+ {
159
+ "commit": {
160
+ "oid": "65660ec908be9196470062db00c849155d8a5c93",
161
+ "message": "Update Signing.props",
162
+ "committedDate": "2024-03-25T14:07:43Z"
163
+ }
164
+ },
165
+ {
166
+ "commit": {
167
+ "oid": "5f3d52a6abf4015a67d4a8c6a06a9ecc01cc16f2",
168
+ "message": "Clean-up and fixes",
169
+ "committedDate": "2024-03-26T06:27:07Z"
170
+ }
171
+ },
172
+ {
173
+ "commit": {
174
+ "oid": "020baf9424882fa96fbcc3e6f172ef0b4dc5d0ef",
175
+ "message": "Merge branch 'ViktorHofer-patch-1' of https://github.com/dotnet/runtime into ViktorHofer-patch-1",
176
+ "committedDate": "2024-03-26T06:28:48Z"
177
+ }
178
+ },
179
+ {
180
+ "commit": {
181
+ "oid": "b3fe52e81d0094bc769f33dc10cf60648b4592d0",
182
+ "message": "style nit",
183
+ "committedDate": "2024-03-26T06:30:50Z"
184
+ }
185
+ },
186
+ {
187
+ "commit": {
188
+ "oid": "f35ffde0407866e996b3d4f1ead7b5360c7e5295",
189
+ "message": "Remove prepare-artifacts.proj",
190
+ "committedDate": "2024-03-26T10:31:27Z"
191
+ }
192
+ }
193
+ ]
194
+ }
195
+ }
data/raw_sample/prs/pr-100005.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 100005,
3
+ "title": "JIT: Fix flags updating when sinking stores below commas",
4
+ "body": "When we sink a store below a comma, we should update the comma's flags after updating the flags of the store, not before.\r\n\r\nFix #99929",
5
+ "createdAt": "2024-03-20T09:47:09Z",
6
+ "closedAt": "2024-03-20T15:21:09Z",
7
+ "mergedAt": "2024-03-20T15:21:09Z",
8
+ "state": "MERGED",
9
+ "author": {
10
+ "login": "jakobbotsch"
11
+ },
12
+ "labels": {
13
+ "nodes": [
14
+ {
15
+ "name": "area-CodeGen-coreclr"
16
+ }
17
+ ]
18
+ },
19
+ "headRefName": "fix-99929",
20
+ "additions": 1,
21
+ "deletions": 1,
22
+ "changedFiles": 1,
23
+ "comments": {
24
+ "totalCount": 2,
25
+ "nodes": [
26
+ {
27
+ "body": "Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch\nSee info in [area-owners.md](https://github.com/dotnet/runtime/blob/main/docs/area-owners.md) if you want to be subscribed.\n<!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->",
28
+ "createdAt": "2024-03-20T09:47:31Z"
29
+ },
30
+ {
31
+ "body": "cc @dotnet/jit-contrib PTAL @EgorBo \r\n\r\n[No diffs](https://dev.azure.com/dnceng-public/public/_build/results?buildId=609666&view=ms.vss-build-web.run-extensions-tab)",
32
+ "createdAt": "2024-03-20T13:34:32Z"
33
+ }
34
+ ]
35
+ },
36
+ "reviewThreads": {
37
+ "totalCount": 0,
38
+ "nodes": []
39
+ },
40
+ "commits": {
41
+ "totalCount": 1,
42
+ "nodes": [
43
+ {
44
+ "commit": {
45
+ "oid": "c546af932a5e27f8b845e9d3dbe406dea17f6730",
46
+ "message": "JIT: Fix flags updating when sinking stores below commas\n\nWhen we sink a store below a comma, we should update the comma's flags\nafter updating the flags of the store, not before.\n\nFix #99929",
47
+ "committedDate": "2024-03-20T09:46:30Z"
48
+ }
49
+ }
50
+ ]
51
+ }
52
+ }
data/raw_sample/prs/pr-100011.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 100011,
3
+ "title": "[main] Update dependencies from dotnet/emsdk",
4
+ "body": "This pull request updates the following dependencies\r\n\r\n[marker]: <> (Begin:Coherency Updates)\r\n## Coherency Updates\r\n\r\nThe following updates ensure that dependencies with a *CoherentParentDependency*\r\nattribute were produced in a build used as input to the parent dependency's build.\r\nSee [Dependency Description Format](https://github.com/dotnet/arcade/blob/master/Documentation/DependencyDescriptionFormat.md#dependency-description-overview)\r\n\r\n[DependencyUpdate]: <> (Begin)\r\n\r\n- **Coherency Updates**:\r\n - **runtime.linux-arm64.Microsoft.NETCore.Runtime.JIT.Tools**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.linux-x64.Microsoft.NETCore.Runtime.JIT.Tools**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.JIT.Tools**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.linux-musl-x64.Microsoft.NETCore.Runtime.JIT.Tools**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.win-arm64.Microsoft.NETCore.Runtime.JIT.Tools**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.win-x64.Microsoft.NETCore.Runtime.JIT.Tools**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.osx-arm64.Microsoft.NETCore.Runtime.JIT.Tools**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.osx-x64.Microsoft.NETCore.Runtime.JIT.Tools**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n - **runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools**: from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport)\r\n\r\n[DependencyUpdate]: <> (End)\r\n\r\n[marker]: <> (End:Coherency Updates)\r\n\r\n\r\n\r\n\r\n\r\n\r\n[marker]: <> (Begin:c22d5069-447c-4252-29fd-08d90a7bb4bc)\r\n## From https://github.com/dotnet/emsdk\r\n- **Subscription**: c22d5069-447c-4252-29fd-08d90a7bb4bc\r\n- **Build**: \r\n- **Date Produced**: March 22, 2024 2:08:43 PM UTC\r\n- **Commit**: 2106e0604f52119b7d49577476ece7d51a23a40d\r\n- **Branch**: refs/heads/main\r\n\r\n[DependencyUpdate]: <> (Begin)\r\n\r\n- **Updates**:\r\n - **Microsoft.SourceBuild.Intermediate.emsdk**: [from 9.0.0-preview.3.24160.1 to 9.0.0-preview.4.24172.11][11]\r\n - **Microsoft.NET.Runtime.Emscripten.3.1.34.Python.win-x64**: [from 9.0.0-preview.3.24160.1 to 9.0.0-preview.4.24172.11][11]\r\n - **Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport**: [from 9.0.0-preview.3.24160.1 to 9.0.0-preview.4.24172.11][11]\r\n - **runtime.linux-arm64.Microsoft.NETCore.Runtime.JIT.Tools**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.linux-x64.Microsoft.NETCore.Runtime.JIT.Tools**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.JIT.Tools**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.linux-musl-x64.Microsoft.NETCore.Runtime.JIT.Tools**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.win-arm64.Microsoft.NETCore.Runtime.JIT.Tools**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.win-x64.Microsoft.NETCore.Runtime.JIT.Tools**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.osx-arm64.Microsoft.NETCore.Runtime.JIT.Tools**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.osx-x64.Microsoft.NETCore.Runtime.JIT.Tools**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n - **runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools**: [from 16.0.5-alpha.1.24154.3 to 16.0.5-alpha.1.24169.1][12]\r\n\r\n[11]: https://github.com/dotnet/emsdk/compare/5dd0620274...2106e0604f\r\n[12]: https://github.com/dotnet/llvm-project/compare/3ac1a8b8d5...ad6d4582d5\r\n\r\n[DependencyUpdate]: <> (End)\r\n\r\n\r\n[marker]: <> (End:c22d5069-447c-4252-29fd-08d90a7bb4bc)\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n",
5
+ "createdAt": "2024-03-20T12:25:12Z",
6
+ "closedAt": "2024-03-25T16:10:04Z",
7
+ "mergedAt": "2024-03-25T16:10:04Z",
8
+ "state": "MERGED",
9
+ "author": {
10
+ "login": "dotnet-maestro"
11
+ },
12
+ "labels": {
13
+ "nodes": [
14
+ {
15
+ "name": "area-codeflow"
16
+ }
17
+ ]
18
+ },
19
+ "headRefName": "darc-main-a78e253c-4e4d-4515-aa80-7915c88e4f5a",
20
+ "additions": 74,
21
+ "deletions": 74,
22
+ "changedFiles": 2,
23
+ "comments": {
24
+ "totalCount": 0,
25
+ "nodes": []
26
+ },
27
+ "reviewThreads": {
28
+ "totalCount": 0,
29
+ "nodes": []
30
+ },
31
+ "commits": {
32
+ "totalCount": 7,
33
+ "nodes": [
34
+ {
35
+ "commit": {
36
+ "oid": "b055ba9acf9945f1399ff1bfbe7879c321555f99",
37
+ "message": "Update dependencies from https://github.com/dotnet/emsdk build\n\nMicrosoft.SourceBuild.Intermediate.emsdk , Microsoft.NET.Runtime.Emscripten.3.1.34.Python.win-x64 , Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport\n From Version 9.0.0-preview.3.24160.1 -> To Version 9.0.0-preview.3.24169.1\n\nDependency coherency updates\n\nruntime.linux-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.win-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.win-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.osx-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.osx-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools\n From Version 16.0.5-alpha.1.24154.3 -> To Version 16.0.5-alpha.1.24168.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport",
38
+ "committedDate": "2024-03-20T12:25:08Z"
39
+ }
40
+ },
41
+ {
42
+ "commit": {
43
+ "oid": "db61b1c8a9ee37e02fdfc6a5f470c9ff62753668",
44
+ "message": "Update dependencies from https://github.com/dotnet/emsdk build\n\nMicrosoft.SourceBuild.Intermediate.emsdk , Microsoft.NET.Runtime.Emscripten.3.1.34.Python.win-x64 , Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport\n From Version 9.0.0-preview.3.24160.1 -> To Version 9.0.0-preview.4.24170.12\n\nDependency coherency updates\n\nruntime.linux-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.win-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.win-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.osx-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.osx-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools\n From Version 16.0.5-alpha.1.24154.3 -> To Version 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport",
45
+ "committedDate": "2024-03-21T12:24:47Z"
46
+ }
47
+ },
48
+ {
49
+ "commit": {
50
+ "oid": "103e9e6791d76cb0aedee2d7711d7502bcc33665",
51
+ "message": "Update dependencies from https://github.com/dotnet/emsdk build\n\nMicrosoft.SourceBuild.Intermediate.emsdk , Microsoft.NET.Runtime.Emscripten.3.1.34.Python.win-x64 , Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport\n From Version 9.0.0-preview.3.24160.1 -> To Version 9.0.0-preview.4.24172.3\n\nDependency coherency updates\n\nruntime.linux-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.win-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.win-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.osx-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.osx-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools\n From Version 16.0.5-alpha.1.24154.3 -> To Version 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport",
52
+ "committedDate": "2024-03-22T12:26:24Z"
53
+ }
54
+ },
55
+ {
56
+ "commit": {
57
+ "oid": "853c98011585ef6e2e31774523fe0c2f1b52436f",
58
+ "message": "Merge branch 'main' into darc-main-a78e253c-4e4d-4515-aa80-7915c88e4f5a",
59
+ "committedDate": "2024-03-23T03:46:45Z"
60
+ }
61
+ },
62
+ {
63
+ "commit": {
64
+ "oid": "b744b4293662406db6e1e4f5038244d700b27414",
65
+ "message": "Update dependencies from https://github.com/dotnet/emsdk build\n\nMicrosoft.SourceBuild.Intermediate.emsdk , Microsoft.NET.Runtime.Emscripten.3.1.34.Python.win-x64 , Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport\n From Version 9.0.0-preview.3.24160.1 -> To Version 9.0.0-preview.4.24172.11\n\nDependency coherency updates\n\nruntime.linux-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.win-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.win-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.osx-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.osx-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools\n From Version 16.0.5-alpha.1.24154.3 -> To Version 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport",
66
+ "committedDate": "2024-03-23T12:26:40Z"
67
+ }
68
+ },
69
+ {
70
+ "commit": {
71
+ "oid": "23cba010a5bb5a18780025bed4fd832593bae113",
72
+ "message": "Update dependencies from https://github.com/dotnet/emsdk build\n\nMicrosoft.SourceBuild.Intermediate.emsdk , Microsoft.NET.Runtime.Emscripten.3.1.34.Python.win-x64 , Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport\n From Version 9.0.0-preview.3.24160.1 -> To Version 9.0.0-preview.4.24172.11\n\nDependency coherency updates\n\nruntime.linux-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.win-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.win-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.osx-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.osx-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools\n From Version 16.0.5-alpha.1.24154.3 -> To Version 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport",
73
+ "committedDate": "2024-03-24T12:20:40Z"
74
+ }
75
+ },
76
+ {
77
+ "commit": {
78
+ "oid": "0d9561da446e7b9ec92d857e4c97219147016c89",
79
+ "message": "Update dependencies from https://github.com/dotnet/emsdk build\n\nMicrosoft.SourceBuild.Intermediate.emsdk , Microsoft.NET.Runtime.Emscripten.3.1.34.Python.win-x64 , Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport\n From Version 9.0.0-preview.3.24160.1 -> To Version 9.0.0-preview.4.24172.11\n\nDependency coherency updates\n\nruntime.linux-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.win-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.win-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.osx-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.osx-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools\n From Version 16.0.5-alpha.1.24154.3 -> To Version 16.0.5-alpha.1.24169.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport",
80
+ "committedDate": "2024-03-25T12:17:28Z"
81
+ }
82
+ }
83
+ ]
84
+ }
85
+ }
data/raw_sample/prs/pr-100012.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 100012,
3
+ "title": "[main] Update dependencies from dotnet/roslyn-analyzers",
4
+ "body": "This pull request updates the following dependencies\r\n\r\n[marker]: <> (Begin:5465c78f-1281-49a8-f9b0-08d9301a7704)\r\n## From https://github.com/dotnet/roslyn-analyzers\r\n- **Subscription**: 5465c78f-1281-49a8-f9b0-08d9301a7704\r\n- **Build**: \r\n- **Date Produced**: March 20, 2024 10:47:31 PM UTC\r\n- **Commit**: 29bdbf5df540dc13d4fe440a1ca7076c6ed65864\r\n- **Branch**: refs/heads/main\r\n\r\n[DependencyUpdate]: <> (Begin)\r\n\r\n- **Updates**:\r\n - **Microsoft.CodeAnalysis.Analyzers**: [from 3.11.0-beta1.24158.2 to 3.11.0-beta1.24170.2][2]\r\n - **Microsoft.CodeAnalysis.NetAnalyzers**: [from 9.0.0-preview.24158.2 to 9.0.0-preview.24170.2][2]\r\n\r\n[2]: https://github.com/dotnet/roslyn-analyzers/compare/94749ce487...29bdbf5df5\r\n\r\n[DependencyUpdate]: <> (End)\r\n\r\n\r\n[marker]: <> (End:5465c78f-1281-49a8-f9b0-08d9301a7704)\r\n\r\n\r\n\r\n",
5
+ "createdAt": "2024-03-20T12:26:35Z",
6
+ "closedAt": "2024-03-22T00:32:43Z",
7
+ "mergedAt": "2024-03-22T00:32:43Z",
8
+ "state": "MERGED",
9
+ "author": {
10
+ "login": "dotnet-maestro"
11
+ },
12
+ "labels": {
13
+ "nodes": [
14
+ {
15
+ "name": "area-codeflow"
16
+ }
17
+ ]
18
+ },
19
+ "headRefName": "darc-main-2e69a06b-9639-45b0-beab-3567d9f4b9f0",
20
+ "additions": 6,
21
+ "deletions": 6,
22
+ "changedFiles": 2,
23
+ "comments": {
24
+ "totalCount": 0,
25
+ "nodes": []
26
+ },
27
+ "reviewThreads": {
28
+ "totalCount": 0,
29
+ "nodes": []
30
+ },
31
+ "commits": {
32
+ "totalCount": 2,
33
+ "nodes": [
34
+ {
35
+ "commit": {
36
+ "oid": "5c74dfc928c1a258dd1e1a9d39ba135d5d57e893",
37
+ "message": "Update dependencies from https://github.com/dotnet/roslyn-analyzers build\n\nMicrosoft.CodeAnalysis.Analyzers , Microsoft.CodeAnalysis.NetAnalyzers\n From Version 3.11.0-beta1.24158.2 -> To Version 3.11.0-beta1.24169.2",
38
+ "committedDate": "2024-03-20T12:26:31Z"
39
+ }
40
+ },
41
+ {
42
+ "commit": {
43
+ "oid": "5eee4dfb3dabed4d6d7f27d650fa774001d73496",
44
+ "message": "Update dependencies from https://github.com/dotnet/roslyn-analyzers build\n\nMicrosoft.CodeAnalysis.Analyzers , Microsoft.CodeAnalysis.NetAnalyzers\n From Version 3.11.0-beta1.24158.2 -> To Version 3.11.0-beta1.24170.2",
45
+ "committedDate": "2024-03-21T12:26:17Z"
46
+ }
47
+ }
48
+ ]
49
+ }
50
+ }