platform/upstream/coreclr.git
7 years agoCreate a GCHandleTable interface with Init/Shutdown.
Aditya Mandaleeka [Thu, 23 Mar 2017 23:23:05 +0000 (16:23 -0700)]
Create a GCHandleTable interface with Init/Shutdown.

7 years agoSeparate finalizer thread creation from GC initialization in EE Startup.
Aditya Mandaleeka [Thu, 23 Mar 2017 22:49:12 +0000 (15:49 -0700)]
Separate finalizer thread creation from GC initialization in EE Startup.

7 years agoMerge pull request #10503 from sandreenko/fgOptimizeDelegateConstructor-cleanup
Sergey Andreenko [Tue, 28 Mar 2017 21:39:44 +0000 (14:39 -0700)]
Merge pull request #10503 from sandreenko/fgOptimizeDelegateConstructor-cleanup

small fgOptimizeDelegateConstructor code refactoring

7 years agoGet VS to quit bugging me about replacing SR.cs already. (#10530)
Atsushi Kanamori [Tue, 28 Mar 2017 21:03:21 +0000 (14:03 -0700)]
Get VS to quit bugging me about replacing SR.cs already. (#10530)

Fix https://github.com/dotnet/coreclr/issues/10358

7 years agoAdd support for CoreCLR testing via ILLINK on Linux
Swaroop Sridhar [Thu, 23 Mar 2017 01:09:05 +0000 (18:09 -0700)]
Add support for CoreCLR testing via ILLINK on Linux

Made changes to the test infrastructure to
1) Generate <test>.sh with commands to invoke ILLINK and run the output
2) Add runtest.sh --link=<path-to-illink> to invoke the ILLINK testing

7 years agoFix comment on mark::recover_plug_info (#10516)
303248153 [Tue, 28 Mar 2017 18:12:18 +0000 (02:12 +0800)]
Fix comment on mark::recover_plug_info (#10516)

7 years agoMerge pull request #10507 from eerhardt/TZBinarySearch
Eric Erhardt [Tue, 28 Mar 2017 17:56:04 +0000 (12:56 -0500)]
Merge pull request #10507 from eerhardt/TZBinarySearch

Binary Search in TimeZoneInfo.GetAdjustmentRuleForTime

7 years ago[Local GC] Use standard C++ types (bool) and consistent types (void*) on the interfac...
Sean Gillespie [Tue, 28 Mar 2017 16:59:04 +0000 (09:59 -0700)]
[Local GC] Use standard C++ types (bool) and consistent types (void*) on the interface (#10463)

* [Local GC] BOOL -> bool on IGCHeap

* [Local GC] size_t -> void* on IGCHeap

* [Local GC] Silence warnings by being explicit about BOOl -> bool conversions

* Address code review feedback: FinalizeAppDomain BOOL -> bool

* Fix warnings

* Address code review feedback:
  1) Fix a missed default parameter (FALSE) on a parameter of type bool,
  2) Fix invocations of the diagnostic callbacks to use boolean literals
     instead of TRUE and FALSE,
  3) Fix various invocations of GC interface methods in the VM to use
     boolean literals instead of TRUE and FALSE

* Address code review feedback: fix inconsistency

7 years agoFix usage text of runtest.sh (#10518)
Hanjoung Lee [Tue, 28 Mar 2017 15:53:08 +0000 (00:53 +0900)]
Fix usage text of runtest.sh (#10518)

7 years agoUpdate CoreClr to beta-25128-03 (#10517)
dotnet bot [Tue, 28 Mar 2017 14:47:07 +0000 (07:47 -0700)]
Update CoreClr to beta-25128-03 (#10517)

7 years agoBinary Search in TimeZoneInfo.GetAdjustmentRuleForTime
Eric Erhardt [Mon, 27 Mar 2017 17:50:36 +0000 (12:50 -0500)]
Binary Search in TimeZoneInfo.GetAdjustmentRuleForTime

Since Unix uses IANA tzdata files, there can be hundreds of adjustment rules for each time zone.  To make the search for a given rule faster, use a binary search since the rules are guaranteed to be in chronological order.  See ValidateTimeZoneInfo.

Fix #5716

7 years agoDon't ignore exceptions thrown from handlers of some events (#10502)
Koundinya Veluri [Tue, 28 Mar 2017 05:38:53 +0000 (22:38 -0700)]
Don't ignore exceptions thrown from handlers of some events (#10502)

Fixes dotnet/corefx#14747:
- Events include: AssemblyLoadContext.Unloading, AppDomain.ProcessExit
- Made the same change for AppDomain.DomainUnload for consistency, but it's not raised

7 years agoFix link for up-for-grabs issues (#10488)
Olof Olsson [Tue, 28 Mar 2017 03:32:35 +0000 (05:32 +0200)]
Fix link for up-for-grabs issues (#10488)

* Fix link for up-for-grabs issues

7 years agoMove deleted files and remove m_ prefix in shared file
Alex Perovich [Mon, 27 Mar 2017 22:44:34 +0000 (15:44 -0700)]
Move deleted files and remove m_ prefix in shared file

7 years agoAdd DateTimeFormat and Parse to shared and remove moved file
Alex Perovich [Mon, 27 Mar 2017 18:12:31 +0000 (11:12 -0700)]
Add DateTimeFormat and Parse to shared and remove moved file

7 years agoUpdate CoreClr, CoreFx to beta-25127-03, beta-25124-07, respectively (#10468)
dotnet bot [Tue, 28 Mar 2017 00:59:59 +0000 (17:59 -0700)]
Update CoreClr, CoreFx to beta-25127-03, beta-25124-07, respectively (#10468)

7 years agoSome missing stragglers (#10509)
Dan Moseley [Tue, 28 Mar 2017 00:58:14 +0000 (17:58 -0700)]
Some missing stragglers (#10509)

7 years agoImplement TLS field handles for RyuJIT/x86 (#10510)
Bruce Forstall [Tue, 28 Mar 2017 00:05:45 +0000 (17:05 -0700)]
Implement TLS field handles for RyuJIT/x86 (#10510)

Implement TLS field handles for RyuJIT/x86

This isn't used by .NET Core, but helps us run desktop testing.

7 years agosmall changes in fgOptimizeDelegateConstructor
Sergey Andreenko [Mon, 27 Mar 2017 19:46:59 +0000 (12:46 -0700)]
small changes in fgOptimizeDelegateConstructor

Delete unnecessary condition.
Use default methods to work with lists.
ArgList construction reordering.

7 years agoAdd heuristic to trigger GC to finalize dead threads and clean up han… (#10413)
Koundinya Veluri [Mon, 27 Mar 2017 18:10:07 +0000 (11:10 -0700)]
Add heuristic to trigger GC to finalize dead threads and clean up han… (#10413)

Add heuristic to trigger GC to finalize dead threads and clean up handles and memory

A thread that is started allocates some handles in Thread::AllocHandles(). After it terminates, the managed thread object needs to be collected by a GC for the handles to be released. Some applications that are mostly idle but have a timer ticking periodically will cause a thread pool thread to be created on each tick, since the thread pool preserves threads for a maximum of 20 seconds currently. Over time the number of handles accumulates to a high value. Thread creation adds some memory pressure, but that does not force a GC until a sufficiently large handle count, and for some mostly idle apps, that can be very long. The same issue arises with directly starting threads as well.

Fixes #6602:
- Track a dead thread count separately from the current dead thread count. This is the count that will contribute to triggering a GC, once it reaches a threshold. The count is tracked separately so that it may be reset to zero when a max-generation GC occurs, preventing dead threads that survive a GC due to references from contributing to triggering a GC again in this fashion.
- If the count exceeds a threshold, enumerate dead threads to see which GC generation the corresponding managed thread objects are in. If the duration of time since the last GC of the desired generation also exceeds a threshold, trigger a preferably non-blocking GC on the finalizer thread.
- Removed a couple of handles and some code paths specific to user-requested thread suspension, which is not supported on CoreCLR

7 years agoMove Pointer.cs to the shared partition. (#10499)
Atsushi Kanamori [Mon, 27 Mar 2017 18:09:21 +0000 (11:09 -0700)]
Move Pointer.cs to the shared partition. (#10499)

* Move Pointer.cs to the shared partition.

(The two internal helpers are not yet used
on CoreRT but that's only because CoreRT
doesn't yet implement Pointer support
for Reflection invoke. Exposing them
unconditionally now to save us the trouble
of removing the #ifdef's later.)

7 years agoPath may contain spaces. Wrap in quotes. (#10493)
Ben Monroe [Mon, 27 Mar 2017 17:04:32 +0000 (02:04 +0900)]
Path may contain spaces. Wrap in quotes. (#10493)

7 years agoMerge pull request #10484 from mikedn/map-vn-assert
Joseph Tremoulet [Mon, 27 Mar 2017 15:45:18 +0000 (11:45 -0400)]
Merge pull request #10484 from mikedn/map-vn-assert

Correctly update bitvector in optAddVnAssertionMapping

7 years agoMerge pull request #10489 from stephentoub/capturethrow
Stephen Toub [Sun, 26 Mar 2017 21:04:40 +0000 (17:04 -0400)]
Merge pull request #10489 from stephentoub/capturethrow

Add static ExceptionDispatchInfo.Throw method

7 years agoAdd static ExceptionDispatchInfo.Throw method
Stephen Toub [Sun, 26 Mar 2017 18:26:34 +0000 (14:26 -0400)]
Add static ExceptionDispatchInfo.Throw method

7 years agoChange typedef for BOOL in gcenv.base.h to int. (#10486)
Aditya Mandaleeka [Sun, 26 Mar 2017 14:59:49 +0000 (07:59 -0700)]
Change typedef for BOOL in gcenv.base.h to int. (#10486)

7 years agoUpdate for Android cross build script (#10483)
Cyd Haselton [Sun, 26 Mar 2017 14:57:46 +0000 (09:57 -0500)]
Update for Android cross build script (#10483)

Updated URLs for libandroid-support and libandroid-support-dev downloads.
Added URLs and folders for libunwind and libunwind-dev
Removed libunwind build

7 years agoCoreFx 14486 Update API summary. (#10485)
Mandar Sahasrabuddhe [Sun, 26 Mar 2017 02:07:42 +0000 (07:37 +0530)]
CoreFx 14486 Update API summary. (#10485)

7 years agoCorrectly update bitvector in optAddVnAssertionMapping
Mike Danes [Sat, 25 Mar 2017 07:45:15 +0000 (09:45 +0200)]
Correctly update bitvector in optAddVnAssertionMapping

When short bitvectors are used only the first assertion was stored in the map stored bitvector, all subsequent assertions were stored into copies of that bitvector.

7 years agoEnable global invariant on OSX (#10470)
Tarek Mahmoud Sayed [Sat, 25 Mar 2017 17:41:39 +0000 (10:41 -0700)]
Enable global invariant on OSX (#10470)

* Enable Globalization Invariant on OSX

* Fix typo

* Fix small typo

* Remove static link to ICU lib

* Addressing the feedback

7 years agoTypo correction (#10482)
Ofer Zelig [Sat, 25 Mar 2017 15:31:45 +0000 (02:31 +1100)]
Typo correction (#10482)

7 years agoDelete pointless <internalonly/> comments (#10479)
Jan Kotas [Sat, 25 Mar 2017 15:30:40 +0000 (08:30 -0700)]
Delete pointless <internalonly/> comments (#10479)

7 years agoIssue #7061 Remove private _Prop from StreamReader, StreamWriter (#10480)
Mandar Sahasrabuddhe [Sat, 25 Mar 2017 15:04:23 +0000 (20:34 +0530)]
Issue #7061 Remove private _Prop from StreamReader, StreamWriter (#10480)

7 years agoSome BitVecOps improvements (#10437)
mikedn [Sat, 25 Mar 2017 14:45:10 +0000 (16:45 +0200)]
Some BitVecOps improvements (#10437)

* Avoid virtual calls when allocating bitvectors

* Use specialized BitVecOps when possible

* Avoid unnecessary bitvector copying

* Cleanup CSE_DataFlow

7 years agoAdd Interlocked.MemoryBarrierProcessWide (#10476)
Jan Kotas [Sat, 25 Mar 2017 07:42:49 +0000 (00:42 -0700)]
Add Interlocked.MemoryBarrierProcessWide (#10476)

Contributes to #16799

7 years agoRemove return statement and throwing directly for obselete methods. (#10477)
Ahson Ahmed Khan [Sat, 25 Mar 2017 05:50:14 +0000 (22:50 -0700)]
Remove return statement and throwing directly for obselete methods. (#10477)

7 years agoMerge pull request #10469 from briansull/ibc-dump
Brian Sullivan [Sat, 25 Mar 2017 04:45:50 +0000 (21:45 -0700)]
Merge pull request #10469 from briansull/ibc-dump

Change the Jit Disasm message when we have profile data

7 years agoMerge pull request #10466 from briansull/stress-fix
Brian Sullivan [Sat, 25 Mar 2017 04:44:51 +0000 (21:44 -0700)]
Merge pull request #10466 from briansull/stress-fix

Fix for JitStress test failures

7 years agoMove DateTime to shared partition (#10460)
Alex Perovich [Sat, 25 Mar 2017 04:10:49 +0000 (23:10 -0500)]
Move DateTime to shared partition (#10460)

* Move DateTime to shared partition

Depends on dotnet/corefx#17484

* Use CoreCLR specific impl of UtcNow on windows

* Use the internal call on unix as well

* Port good corert changes

7 years agoCleanup unnecessary import (#10472)
Alex Perovich [Sat, 25 Mar 2017 03:13:09 +0000 (22:13 -0500)]
Cleanup unnecessary import (#10472)

7 years agoRename resource strings to match resx (#10475)
Dan Moseley [Sat, 25 Mar 2017 03:02:35 +0000 (20:02 -0700)]
Rename resource strings to match resx (#10475)

7 years agoFixed m_ prefixes in a few files from shared partition (#10473)
Jan Kotas [Sat, 25 Mar 2017 02:31:22 +0000 (19:31 -0700)]
Fixed m_ prefixes in a few files from shared partition (#10473)

7 years agoChange the Jit Disasm message when we have profile date to include
Brian Sullivan [Fri, 24 Mar 2017 23:29:27 +0000 (16:29 -0700)]
Change the Jit Disasm message when we have profile date to include
information about the edge weights and the value of fgCalledCount.
Example:

; with IBC profile data, edge weights are valid, and fgCalledCount is 145

7 years agoCoreFx 14486 Remove argument validation in DangerousCreate (#10462)
Mandar Sahasrabuddhe [Sat, 25 Mar 2017 01:21:56 +0000 (06:51 +0530)]
CoreFx 14486 Remove argument validation in DangerousCreate (#10462)

7 years agoCR feedback
Brian Sullivan [Sat, 25 Mar 2017 00:51:47 +0000 (17:51 -0700)]
CR feedback
Removed assert about BB_NONE

7 years agoRemove dead strings (#10445)
Dan Moseley [Sat, 25 Mar 2017 00:42:44 +0000 (17:42 -0700)]
Remove dead strings (#10445)

Removed 436 dead strings from .resx, kept 1034

7 years agoSort entries in shared project (#10465)
Alex Perovich [Sat, 25 Mar 2017 00:18:37 +0000 (19:18 -0500)]
Sort entries in shared project (#10465)

7 years agoFix for JitStress test failures
Brian Sullivan [Fri, 24 Mar 2017 22:42:04 +0000 (15:42 -0700)]
Fix for JitStress test failures

7 years agoMerge pull request #10459 from dotnet/mirror-merge-9061692
Jan Kotas [Fri, 24 Mar 2017 21:59:25 +0000 (14:59 -0700)]
Merge pull request #10459 from dotnet/mirror-merge-9061692

Mirror changes from dotnet/corert

7 years agoDelete moved file
Jan Kotas [Fri, 24 Mar 2017 20:16:39 +0000 (13:16 -0700)]
Delete moved file

7 years agoUse Array.Copy with index and remove coreclr specific function
Alex Perovich [Fri, 24 Mar 2017 18:40:21 +0000 (11:40 -0700)]
Use Array.Copy with index and remove coreclr specific function

7 years agoNS2.0 Complete DBNull's surface area. (#3085)
Atsushi Kanamori [Thu, 23 Mar 2017 22:34:07 +0000 (15:34 -0700)]
NS2.0 Complete DBNull's surface area. (#3085)

* Copy over CoreCLRs' DBNull.cs

* Make it presentable, then move it into the shared partition.

7 years agoUpdate CoreClr to beta-25123-08 (#10435)
dotnet bot [Fri, 24 Mar 2017 17:39:37 +0000 (10:39 -0700)]
Update CoreClr to beta-25123-08 (#10435)

7 years agoMerge pull request #10149 from JosephTremoulet/DestSingleField
Joseph Tremoulet [Fri, 24 Mar 2017 16:55:01 +0000 (12:55 -0400)]
Merge pull request #10149 from JosephTremoulet/DestSingleField

Scalarize single-field-to-lclVar block copy

7 years agoMerge pull request #10451 from ionuttamas/patch-1
Bruce Forstall [Fri, 24 Mar 2017 15:57:23 +0000 (08:57 -0700)]
Merge pull request #10451 from ionuttamas/patch-1

Update ryujit-overview.md

7 years ago[Linux][GDB-JIT] Add lexical scopes info for local variables (#10307)
Igor Kulaychuk [Fri, 24 Mar 2017 15:52:47 +0000 (18:52 +0300)]
[Linux][GDB-JIT] Add lexical scopes info for local variables (#10307)

* Fix memory leak when getting local variable names

* Pass locals from SymbolReader using new LocalVarInfo struct

* Map IL to native addresses for variable scopes

* Dump variables with scopes

* Add scope info to VarDebugInfo

* Remove unnecessary usage of lines info in BuildDebugInfo

* Use holders for scopes and local var names

* Move array of FunctionMember from global scope to local scope

* Move SymbolNames from global scope to local scope

7 years agoCopy-paste errors found by PVS-Studio. (#10450)
Ilya [Fri, 24 Mar 2017 15:48:02 +0000 (18:48 +0300)]
Copy-paste errors found by PVS-Studio. (#10450)

I used PVS-Studio static analyzer to check this project. I would like to suggest a variant of the way to fix the copy-paste errors, detected with the help of V778 diagnostic. Description of the diagnostic: https://www.viva64.com/en/w/V778/

7 years agoUpdate ryujit-overview.md
Ionut Tamas [Fri, 24 Mar 2017 11:58:53 +0000 (13:58 +0200)]
Update ryujit-overview.md

7 years agoUpdate ci-trigger-phrases.md (#10444)
Hyeongseok Oh [Fri, 24 Mar 2017 07:16:47 +0000 (16:16 +0900)]
Update ci-trigger-phrases.md (#10444)

- Add Linux arm/x86 CI trigger phrases
- Add Ubuntu16.10 x64 pri0 trigger phrase
- Remove Ubuntu15.10 x64 pri0 trigger phrase

7 years agoAdd PNSE messages (#10440)
Dan Moseley [Fri, 24 Mar 2017 06:47:38 +0000 (23:47 -0700)]
Add PNSE messages (#10440)

* PNSE messages

* threading

* marshal

* interop svc

* More

* more

* Remove env var special casing for UWP

* Pending question

* remove pinvoke

7 years agoMerge pull request #10426 from BruceForstall/FixIlasmRoundtrip
Jan Kotas [Fri, 24 Mar 2017 04:02:52 +0000 (21:02 -0700)]
Merge pull request #10426 from BruceForstall/FixIlasmRoundtrip

Enable FEATURE_METADATA_EMIT_ALL for non-crossgen compiles

7 years ago[Local GC] Redirect fatal errors to the EE (#10436)
Sean Gillespie [Fri, 24 Mar 2017 01:40:56 +0000 (18:40 -0700)]
[Local GC] Redirect fatal errors to the EE (#10436)

* [Local GC] Redirect fatal errors to the EE

* Address code review feedback: don't fetch the IP when reporting a fatal error

7 years agoGetContainingObject is inconsistent with the lowest address it chooses. (#10438)
Maoni Stephens [Fri, 24 Mar 2017 01:24:55 +0000 (18:24 -0700)]
GetContainingObject is inconsistent with the lowest address it chooses. (#10438)

For profiling purpose it only cares about condemned ranges; for byref
validation it cares about any object on the heap.

7 years agoMerge pull request #10400 from briansull/ibc-counts
Brian Sullivan [Fri, 24 Mar 2017 01:24:40 +0000 (18:24 -0700)]
Merge pull request #10400 from briansull/ibc-counts

Change setBBProfileWeight so that we no longer multiply a profile counts by 100

7 years agoMerge pull request #10434 from dotnet/mirror-merge-9060302
Jan Kotas [Fri, 24 Mar 2017 00:39:59 +0000 (17:39 -0700)]
Merge pull request #10434 from dotnet/mirror-merge-9060302

Mirror changes from dotnet/corert

7 years agoMove StringBuilder to shared partition (#10357)
Alex Perovich [Thu, 23 Mar 2017 23:33:46 +0000 (18:33 -0500)]
Move StringBuilder to shared partition (#10357)

* Move StringBuilder to shared partition

* Fix PR comments

* s/CoreClr/CoreCLR

* Remove unused ThreadSafeCopy overload

* Actually rename the file

7 years agoDelete NewMerger
Jan Kotas [Thu, 23 Mar 2017 18:55:26 +0000 (11:55 -0700)]
Delete NewMerger

This was only used as part of C++ link.exe for IJW

7 years agoEnable FEATURE_METADATA_EMIT_ALL for non-crossgen compiles
Bruce Forstall [Thu, 23 Mar 2017 16:31:35 +0000 (09:31 -0700)]
Enable FEATURE_METADATA_EMIT_ALL for non-crossgen compiles

This allows ilasm roundtrip test to work with NetStandard 2.0
changes where C# compiler emits a ".permissionset" attribute
into the assembly that ildasm emits. This define enables the
APIs that ilasm uses to process this attribute.

Re-enable ilasm roundtrip test.

Fixes #8418

7 years agoMerge pull request #10417 from viva64/master
Aditya Mandaleeka [Thu, 23 Mar 2017 22:14:48 +0000 (15:14 -0700)]
Merge pull request #10417 from viva64/master

Missing comma

7 years agoAdd missing
Alex Perovich [Thu, 23 Mar 2017 22:08:35 +0000 (15:08 -0700)]
Add missing

7 years agoRemove moved files
Alex Perovich [Thu, 23 Mar 2017 21:49:30 +0000 (14:49 -0700)]
Remove moved files

7 years agoporting desktop changes to enable up to 1024 CPUs (#10404)
Maoni Stephens [Thu, 23 Mar 2017 21:37:47 +0000 (14:37 -0700)]
porting desktop changes to enable up to 1024 CPUs (#10404)

porting desktop changes to enable up to 1024 CPUs

7 years agoMove IReflect.cs to shared partition. (#3074)
Atsushi Kanamori [Thu, 23 Mar 2017 13:54:08 +0000 (06:54 -0700)]
Move IReflect.cs to shared partition. (#3074)

 Split AssemblyAttributes.cs into properly named files.

7 years agoMove the easy files in System\Reflection to the shared partition. (#3060)
Atsushi Kanamori [Wed, 22 Mar 2017 18:16:35 +0000 (11:16 -0700)]
Move the easy files in System\Reflection to the shared partition. (#3060)

* Prepare the "easy" System\Reflection .cs files for move to shared partition

Files to be moved the shared partition (after https://github.com/dotnet/coreclr/pull/10387 side is in)

AmbiguousMatchException.cs
AssemblyAttributes.cs
AssemblyContentType.cs
AssemblyNameFlags.cs
Binder.cs
BindingFlags.cs
CallingConventions.cs
CustomAttributeFormatException.cs
DefaultMemberAttribute.cs
EventAttributes.cs
ExceptionHandlingClauseOptions.cs
FieldAttributes.cs
GenericParameterAttributes.cs
ICustomAttributeProvider.cs
ImageFileMachine.cs
InterfaceMapping.cs
IntrospectionExtensions.cs
InvalidFilterCriteriaException.cs
IReflectableType.cs
ManifestResourceInfo.cs
MemberFilter.cs
MemberTypes.cs
MethodAttributes.cs
MethodImplAttributes.cs
Missing.cs
ModuleResolveEventHandler.cs
ParameterAttributes.cs
ParameterModifier.cs
PortableExecutableKinds.cs
ProcessorArchitecture.cs
PropertyAttributes.cs
ReflectionContext.cs
ReflectionTypeLoadException.cs
ResourceAttributes.cs
ResourceLocation.cs
StrongNameKeyPair.cs
TargetException.cs
TargetInvocationException.cs
TargetParameterCountException.cs
TypeAttributes.cs
TypeFilter.cs

* Prepare the "easy" System\Reflection .cs files for move to shared partition

Files to be moved the shared partition (after https://github.com/dotnet/coreclr/pull/10387 side is in)

AmbiguousMatchException.cs
AssemblyAttributes.cs
AssemblyContentType.cs
AssemblyNameFlags.cs
Binder.cs
BindingFlags.cs
CallingConventions.cs
CustomAttributeFormatException.cs
DefaultMemberAttribute.cs
EventAttributes.cs
ExceptionHandlingClauseOptions.cs
FieldAttributes.cs
GenericParameterAttributes.cs
ICustomAttributeProvider.cs
ImageFileMachine.cs
InterfaceMapping.cs
IntrospectionExtensions.cs
InvalidFilterCriteriaException.cs
IReflectableType.cs
ManifestResourceInfo.cs
MemberFilter.cs
MemberTypes.cs
MethodAttributes.cs
MethodImplAttributes.cs
Missing.cs
ModuleResolveEventHandler.cs
ParameterAttributes.cs
ParameterModifier.cs
PortableExecutableKinds.cs
ProcessorArchitecture.cs
PropertyAttributes.cs
ReflectionContext.cs
ReflectionTypeLoadException.cs
ResourceAttributes.cs
ResourceLocation.cs
StrongNameKeyPair.cs
TargetException.cs
TargetInvocationException.cs
TargetParameterCountException.cs
TypeAttributes.cs
TypeFilter.cs

* Move to shared.

7 years agoMerge pull request #10336 from noahfalk/wer_resource
Noah Falk [Thu, 23 Mar 2017 20:21:48 +0000 (13:21 -0700)]
Merge pull request #10336 from noahfalk/wer_resource

Support Windows Minidump

7 years agoMark b425314 Incompatible (#10431)
Steve MacLean [Thu, 23 Mar 2017 20:05:55 +0000 (16:05 -0400)]
Mark b425314 Incompatible (#10431)

b425314 has internal logic to determine if it making forward progress

If test takes too long, test self check fails and test aborts with a
failure.  This makes this test difficult in GCStress/HeapVerify situations
where run time is substantially longer.

This test was already marked incompatible for x86.  Remove x86 condition
to mark incompatible on al platforms.

7 years agoMerge pull request #10432 from AndyAyersMS/ImproveTypes3
Andy Ayers [Thu, 23 Mar 2017 20:03:07 +0000 (13:03 -0700)]
Merge pull request #10432 from AndyAyersMS/ImproveTypes3

Jit: track ref types for inlinee locals and args

7 years agoUpdate CoreClr to beta-25123-07 (#10428)
dotnet bot [Thu, 23 Mar 2017 19:34:59 +0000 (12:34 -0700)]
Update CoreClr to beta-25123-07 (#10428)

7 years agoUse roslyn common props (#10430)
chcosta [Thu, 23 Mar 2017 18:56:52 +0000 (11:56 -0700)]
Use roslyn common props (#10430)

7 years ago[PAL] Do NOT check execute bit in INIT_FindEXEPath (#10342)
Jonghyun Park [Thu, 23 Mar 2017 18:51:13 +0000 (03:51 +0900)]
[PAL] Do NOT check execute bit in INIT_FindEXEPath (#10342)

* Do NOT check execute bit in INIT_FindEXEPath

* Do NOT lookup path during PAL_Initialize

This commmit removes path lookup inside INIT_FindEXEPath, and renames
INIT_FindEXEPath as INIT_EXEPath.

7 years agoMigrate the Reflection serialization holders to the shared partition. (#10429)
Atsushi Kanamori [Thu, 23 Mar 2017 18:49:42 +0000 (11:49 -0700)]
Migrate the Reflection serialization holders to the shared partition. (#10429)

* String => string, SR.GetResourceString() => SR.

* Copy over CoreRT files verbatim.

* Get things building and running again.

* Don't bring CoreRT's visibility sins into CoreCLR

* String => string, Object => object

* De-"m_" the field names.

* Move the files to the shared directory.

7 years agoMerge pull request #10411 from rahku/fix10197
Rahul Kumar [Thu, 23 Mar 2017 18:35:12 +0000 (11:35 -0700)]
Merge pull request #10411 from rahku/fix10197

Re-enable tests

7 years agoMerge pull request #10397 from briansull/ibc-dump
Brian Sullivan [Thu, 23 Mar 2017 18:30:05 +0000 (11:30 -0700)]
Merge pull request #10397 from briansull/ibc-dump

Improve the dumping of BasicBlock weights and edge counts in the JIT

7 years agoMerge pull request #10402 from BruceForstall/FixMulCseBug
Bruce Forstall [Thu, 23 Mar 2017 17:57:49 +0000 (10:57 -0700)]
Merge pull request #10402 from BruceForstall/FixMulCseBug

Fix CSE bug with GT_MUL and GTF_MUL_64RSLT

7 years agoJit: track ref types for inlinee locals and args
Andy Ayers [Mon, 20 Mar 2017 18:12:05 +0000 (11:12 -0700)]
Jit: track ref types for inlinee locals and args

The jit may use new temporaries for inline locals and args. For temps
representing ref type locals and args, propagate the class handle from
the appropriate signature. This makes more types to be available for
devirtualization.

Also in addition to capturing arg ref types, cleanup `impInlineFetchArg`
by commoning out the table lookups and adding a header comment.

7 years ago[Unix] runtest.sh crossgen should exit on failure (#9907)
Steve MacLean [Thu, 23 Mar 2017 17:38:50 +0000 (13:38 -0400)]
[Unix] runtest.sh crossgen should exit on failure (#9907)

* Fix crossgen segfault

* Check crossgen in runtests.sh

* Do not use test -v

CI showed bash 4.2 feature test -v is not present on
OSX CI systems.  Fall back to more standard bash test

7 years agoWe have found and fixed a security weakness (CWE-188) using PVS-Studio tool: Analyzer...
Ilya Ivanov [Thu, 23 Mar 2017 14:46:08 +0000 (17:46 +0300)]
We have found and fixed a security weakness (CWE-188) using PVS-Studio tool: Analyzer warning: V557 Array overrun is possible. The value of 'dwCode - 1' index could reach 8.
PVS-Studio is a static code analyzer for C, C++ and C#: https://www.viva64.com/en/pvs-studio/

7 years agoScalarize single-field-to-lclVar block copy
Joseph Tremoulet [Mon, 13 Mar 2017 18:49:16 +0000 (11:49 -0700)]
Scalarize single-field-to-lclVar block copy

Morph has some logic to scalarize struct copies where the RHS is a scalar
and the LHS is a single-field struct.  This change adds the symmetric
logic where the LHS is a scalar and the RHS is a single-field struct.
This pattern shows up in Span<T> methods that initialize the data pointer
field, due to the way scalar replacement operates on spans.

7 years agoMove IReflect.cs to shared partition. (#10415)
Atsushi Kanamori [Thu, 23 Mar 2017 14:02:28 +0000 (07:02 -0700)]
Move IReflect.cs to shared partition. (#10415)

7 years agoI used PVS-Studio static analyzer to check this project. I would like to suggest...
Ilya [Thu, 23 Mar 2017 13:58:18 +0000 (16:58 +0300)]
I used PVS-Studio static analyzer to check this project. I would like to suggest a variant of the way to fix the error, detected with the help of V534 diagnostic. Description of the diagnostic: https://viva64.com/en/examples/v534/ (#10414)

Incorrect variable 'i' from the outer loop is used in condition of the inner loop.

7 years agoMerge pull request #10412 from dotnet-bot/master-UpdateDependencies
Stephen Toub [Thu, 23 Mar 2017 13:41:12 +0000 (09:41 -0400)]
Merge pull request #10412 from dotnet-bot/master-UpdateDependencies

Update CoreClr, CoreFx to beta-25123-03, beta-25122-02, respectively (master)

7 years ago[x86/Linux] fix broken stack in DelayLoad_Helper when converting to AT&T syntax assem...
ragmani [Thu, 23 Mar 2017 09:09:09 +0000 (18:09 +0900)]
[x86/Linux] fix broken stack in DelayLoad_Helper when converting to AT&T syntax assembly. (#10383)

* fix broken stack in DelayLoad_Helper when converting to AT&T syntax assembly.
"push \frameFlags" was changed to "pushw $0x0" by converting to AT&T syntax assembly.

Signed-off-by: ragmani <ragmani0216@gmail.com>
* [x86/Linux] modify pushing frameFlags stack from Intel syntax to AT&T syntax.

Signed-off-by: ragmani <ragmani0216@gmail.com>
7 years agoUpdate CoreClr, CoreFx to beta-25123-03, beta-25122-02, respectively
dotnet-bot [Thu, 23 Mar 2017 08:57:36 +0000 (08:57 +0000)]
Update CoreClr, CoreFx to beta-25123-03, beta-25122-02, respectively

7 years agoMerge pull request #10064 from rahku/cgroup
Rahul Kumar [Thu, 23 Mar 2017 08:13:54 +0000 (01:13 -0700)]
Merge pull request #10064 from rahku/cgroup

memory limit in containers on linux

7 years agoRe-enable tests
Rahul Kumar [Thu, 23 Mar 2017 07:51:55 +0000 (00:51 -0700)]
Re-enable tests

7 years agomemory limit in containers on linux
rahul [Thu, 9 Mar 2017 02:55:24 +0000 (18:55 -0800)]
memory limit in containers on linux

7 years agoVarious fixes for generating portable RID packages (#10409)
Gaurav Khanna [Thu, 23 Mar 2017 06:25:57 +0000 (23:25 -0700)]
Various fixes for generating portable RID packages (#10409)

7 years agoAdd handling of multiple CMake installations in probe-win (#9980)
Luis G [Thu, 23 Mar 2017 05:51:45 +0000 (02:51 -0300)]
Add handling of multiple CMake installations in probe-win (#9980)

* Add handling of multiple CMake installations in probe-win
Check if multiple CMake versions are installed, and use by default the first path available

Fixes #8221

* Fix typo in value accessor

* Restore previous null check in probe_win

* Remove redundant assignment

7 years agoRemoving the special handling in classlibnative for atan2(±∞, ±∞) and pow(-1.0, ...
Tanner Gooding [Thu, 23 Mar 2017 05:44:40 +0000 (22:44 -0700)]
Removing the special handling in classlibnative for atan2(±∞, ±∞) and pow(-1.0, ±∞). (#10295)

* Removing the special handling in classlibnative for atan2(±∞, ±∞) and pow(-1.0, ±∞).

* Fixing up the logic for HAVE_COMPATIBLE_POW in the PAL layer.

7 years agoFix fallout from switching corelib to use resx (#10407)
Jan Kotas [Thu, 23 Mar 2017 05:43:36 +0000 (22:43 -0700)]
Fix fallout from switching corelib to use resx (#10407)

Fixes #https://github.com/dotnet/corefx/issues/17413