Commit Graph
1638 Commits
Author SHA1 Message Date
Stephen Toub e5ff70defe Fix some license headers across the repo (dotnet/corefx#27039)
Commit migrated from https://github.com/dotnet/corefx/commit/7f19e761b7400521030707df2e6fac10daa36f26
2018-02-11 08:55:26 -05:00
Stephen Toub 1a5d97f0d4 Mark {Configured}ValueTaskAwaiter as readonly in contracts (dotnet/corefx#27030)
Commit migrated from https://github.com/dotnet/corefx/commit/4ff3c791c0eac88d96f135b16fc5425d48e02211
2018-02-11 05:15:15 -05:00
Stephen Toub 217d514c9b Add tests for T[] -> ArraySegment<T> cast (dotnet/corefx#27032)
Commit migrated from https://github.com/dotnet/corefx/commit/d690bb63b15556190fad7e6bb85eb7a4dce69c79
2018-02-11 05:10:13 -05:00
Ahson Khan 1dc73f515f Change the semantics of Span ToString to return the contents for T=char (dotnet/corefx#26726)
* Change the semantics of Span ToString to return the contents for T=char

* Updating ToString tests.

* Fix the expected value in tests and add Span<string> test.

* Add missing ToString methods to the reference assemblies.


Commit migrated from https://github.com/dotnet/corefx/commit/928d525681cb165cb9112ea5f2686571c05eb7fa
2018-02-04 19:08:16 -08:00
Pent Ploompuu b434fcc1be BigInteger based random testing of Decimal (part 2) (dotnet/corefx#26338)
Commit migrated from https://github.com/dotnet/corefx/commit/64634c7c7f260a1025d61c7b0523fc522523932c
2018-02-01 16:57:03 -06:00
Stephen Toub 3a2a815f55 Remove ValueTask<T>.CreateAsyncMethodBuilder from ref (dotnet/corefx#26703)
Commit migrated from https://github.com/dotnet/corefx/commit/9ba6220b3d8846d7c5bb1a28b9c3fb10270a98a3
2018-01-31 09:04:36 -05:00
Michal Strehovský 39b25a8a72 Add test coverage for Type.GetInterfaceMap (dotnet/corefx#26679)
Commit migrated from https://github.com/dotnet/corefx/commit/6cd7e55e1a3fc7b2890023483e319f39bfb34c35
2018-01-31 07:50:22 +01:00
Ian Hays ba1973392a Consume Span moves (dotnet/corefx#26467)
Consume Span moves
- [Move Span.DangerousCreate to MemoryMarshal.CreateSpan](dotnet/corefx#26139)
- [Move ReadOnlySpan.DangerousCreate to MemoryMarshal.CreateReadOnlySpan](dotnet/corefx#26139)
- [Move Span.NonPortableCast to MemoryMarshal.Cast](dotnet/corefx#26368)
- [Move ReadOnlySpan.NonPortableCast to MemoryMarshal.Cast](dotnet/corefx#26368)
- [Add ToString override to Span and ReadOnlySpan](dotnet/corefx#26295)
- [Add ToEnumerable function to MemoryMarshal that takes a Memory](dotnet/corefx#24854)


Commit migrated from https://github.com/dotnet/corefx/commit/540a99ce273265ba62a25b48c696d2d506c88ab4
2018-01-29 15:01:25 -08:00
Krzysztof Wicher 88d66d7944 Regression test for AM/PMDesignator handling (dotnet/corefx#26436)
* Regression test for AM/PMDesignator handling

* skip on netfx (needs port)


Commit migrated from https://github.com/dotnet/corefx/commit/d22340ec3d1ad5854eb694e3f04729a9ec496721
2018-01-24 16:46:14 -08:00
Ahson Khan 994c36de8d Fixing spacing in S.Memory and S.Runtime refs (dotnet/corefx#26521)
* Fixing spacing in S.Memory and S.Runtime refs

* Add back GetUnicodeCategory(int codePoint) to the S.R ref

* Fix which class to add the GetUnicodeCategory(int) API


Commit migrated from https://github.com/dotnet/corefx/commit/5b1af42d089c89cc6d7d0636b5f77f5734cabd2c
2018-01-22 19:38:30 -08:00
Ahson Khan c87ef653f8 Rename Pin offset to byteOffset and clean up Retain test (dotnet/corefx#26518)
Commit migrated from https://github.com/dotnet/corefx/commit/3bd92627316f9f3174143638ab6e7c3c282de523
2018-01-22 13:57:11 -08:00
Tarek Mahmoud Sayed 269a8cdab3 Expose CharUnicodeInfo.GetUnicodeCategory(int) (dotnet/corefx#26430)
Commit migrated from https://github.com/dotnet/corefx/commit/c9555103b2bd378326241935655df986f9fd9f84
2018-01-22 12:37:08 -08:00
Jan Kotas ac7ffa6a33 Add test for case insensitive timezone lookup (dotnet/corefx#26480)
* Add test for case insensitive timezone lookup

Regression test for dotnet/corefx#26479

* PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/6b3a4411afac105759d8f9728456bcf6b754a01b
2018-01-22 12:33:19 -08:00
ahsonkhan 01dd7fb80e Fix spacing in System.Runtime ref to be consistent.
Commit migrated from https://github.com/dotnet/corefx/commit/a4c639fb48f9cbfb66e840016a63849ab9c897a2
2018-01-19 18:39:00 -08:00
ahsonkhan df607d2758 Merge branch 'master' of https://github.com/dotnet/corefx into OwnedMemoryOffset
Commit migrated from https://github.com/dotnet/corefx/commit/657d446f0a5ed294bd1c3930a8792992c50b0c00
2018-01-19 12:33:53 -08:00
Anirudh Agnihotry 9c2c4e8be9 Tests for Added Append(Stringbuilder,int,int) and Append(StringBuilder) overlaod apis (dotnet/corefx#26231)
* Tests for new sppend string builder api

* Added one more test

* Resolved Merge Conflicts

* Removed Comments

* Removed Comments

* Feedback addressed and more tests added

* tests for this.append(this) count =0

* tests for append(Stringbuilder(null)

* Max capacity exceed tests


Commit migrated from https://github.com/dotnet/corefx/commit/207618d35bc242a7fd14ee741c00bd5be2aaff0c
2018-01-17 18:22:43 -08:00
Jan Kotas ad33672d39 Expose RuntimeFeature.PortablePdb (dotnet/corefx#26387)
Fixes dotnet/corefx#19788

Commit migrated from https://github.com/dotnet/corefx/commit/67d240ed07342544cd5c09d1765952fe8c9d9036
2018-01-17 10:49:58 -08:00
Jan Kotas 989008b95d Delete unnecessary ApiCompatBaseline files (dotnet/corefx#26343)
Commit migrated from https://github.com/dotnet/corefx/commit/8a89637f9937dda1a8c6c9875c5006904c8ed7ec
2018-01-15 05:16:14 -08:00
Michal Strehovský 7c8b6f8c0b Add regression test for GetHashCode of default handles (dotnet/corefx#26202)
Regression tests for dotnet/corertdotnet/corefx#5216.

This is a port of these CoreCLR tests:

https://github.com/dotnet/coreclr/blob/dotnet/corefx@180a3c80b1d193f4c63b265e21bd29277b81cbcd/tests/src/CoreMangLib/cti/system/runtimemethodhandle/runtimemethodhanldegethashcode.cs
https://github.com/dotnet/coreclr/blob/dotnet/corefx@180a3c80b1d193f4c63b265e21bd29277b81cbcd/tests/src/CoreMangLib/cti/system/runtimefieldhandle/runtimefieldhandlegethashcode.cs

(It's the first half of both tests, since the second half makes no sense.)

Commit migrated from https://github.com/dotnet/corefx/commit/6671bee1823ca94b358b0a764503daee00b40947
2018-01-15 13:36:32 +01:00
dotnet-maestro-bot 729068d8a7 Update CoreClr, CoreFx, CoreSetup to preview1-26113-02, preview1-26113-03, preview1-26112-04, respectively (master) (dotnet/corefx#26315)
* Update CoreClr, CoreFx, CoreSetup to preview1-26113-02, preview1-26113-03, preview1-26112-04, respectively

* Mark ref-like types in System.Runtime contract as ref


Commit migrated from https://github.com/dotnet/corefx/commit/8f5e776239b131e2d92019f2ca48cbe13b11aa0c
2018-01-13 16:50:09 -08:00
Anirudh Agnihotry 2795df5b03 Tests For new StringBuilder.Equals(ReadOnlySpan<char>) Api (dotnet/corefx#26189)
Tests For new StringBuilder.Equals(ReadOnlySpan<char>) 

Commit migrated from https://github.com/dotnet/corefx/commit/58b5c181d3d47a3c2f75b602bb5153da9528a401
2018-01-12 15:06:49 -08:00
Jan Kotas 23a6168b5e Add test for RuntimeArgumentHandle byref-like (dotnet/corefx#26299)
Commit migrated from https://github.com/dotnet/corefx/commit/1332472879ad23df4a1beb632510560e864756ad
2018-01-12 14:33:07 -08:00
Wes Haggard fc9b090ef0 Update references assemblies to include private fields for structs
Contributes to https://github.com/dotnet/corefx/issues/6185.


Commit migrated from https://github.com/dotnet/corefx/commit/2e97d43060dfb589907a15dbfef0cc7db6e90546
2018-01-12 08:53:41 -08:00
Wes Haggard 37f9259ee8 Teach the tool to understand ByReference<T> contains a reference
This make Span and ReadOnlySpan have a reference and thus generates
a private object field for the compiler to do the correct checks.


Commit migrated from https://github.com/dotnet/corefx/commit/6ef954562c71fe7f3de4db7407d3d4ec58825dd7
2018-01-11 16:30:15 -08:00
ahsonkhan a208f62100 Merge branch 'master' of https://github.com/dotnet/corefx into OwnedMemoryOffset
Commit migrated from https://github.com/dotnet/corefx/commit/f0451fc88170d5909a5aeab2e56c13f1f52bd17f
2018-01-11 13:30:03 -08:00
Wes Haggard f62b5d2b13 Update System.Runtime ref primitive types to contain field of same type
Commit migrated from https://github.com/dotnet/corefx/commit/7e3912919409251928b73c4f9db51db797fb47b8
2018-01-11 12:55:40 -08:00
Wes Haggard 9a754cdb83 Fix ReadOnlySpan obsolete message to reference ReadOnlySpan instead of Span
Remove unnecessary CLSCompliant(false) on GetModuleHandle


Commit migrated from https://github.com/dotnet/corefx/commit/c58e40fa36b7292e87fddc4606e88198f7a70d1e
2018-01-11 10:47:03 -08:00
Wes Haggard 6ce3704a15 Update struct private field types to not count unsafe pointers as object
Commit migrated from https://github.com/dotnet/corefx/commit/9288c499b2491a2208225b8621ac99f7a301081e
2018-01-11 10:10:49 -08:00
Wes Haggard d886b0634d Refresh System.Runtime ref from System.Private.CoreLib in Coreclr
This also includes an update to the genapi tool that includes the
necessary private fields in structs to enable the compiler to
do correctness checks.

See https://github.com/dotnet/corefx/issues/6185.


Commit migrated from https://github.com/dotnet/corefx/commit/a2d4a328c5e6f297ddf93643b8d565cd2c56574c
2018-01-10 16:16:47 -08:00
Jan Kotas 8677a54865 Fix build breaks
Commit migrated from https://github.com/dotnet/corefx/commit/ada0a3ff43c994fa17f81be3de17b91f8daf1517
2018-01-08 10:13:00 -08:00
dotnet-maestro-bot 1be660cc97 Update BuildTools, CoreClr, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to prerelease-02406-01, preview1-26106-01, preview1-26105-02, beta-26105-01, beta-26105-01, respectively (master) (dotnet/corefx#26191)
* Update BuildTools, CoreClr, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to prerelease-02406-01, preview1-26106-01, preview1-26105-02, beta-26105-01, beta-26105-01, respectively

* Fix UWP build break

YieldAwaiter is not marked as readonly in ProjectN yet


Commit migrated from https://github.com/dotnet/corefx/commit/a1e2a4cf0fbc2269abd2603c3e229a5f66c32090
2018-01-06 09:34:31 -08:00
Wes Haggard 9e393d5e3d Fix uapaot build issues for System.Runtime
baseline readonly struct issue


Commit migrated from https://github.com/dotnet/corefx/commit/c2334edacdf82a32bb9b18ec9eea12420876dc0d
2018-01-05 10:27:00 -08:00
Wes Haggard c32097e850 ConfiguredValueTaskAwaiter and ValueTaskAwaiter cannot be readonly in ref
In order for these to be marked as readonly in the ref they also
need to be marked readonly in the various implementations, in particular
in System.Private.CoreLib.


Commit migrated from https://github.com/dotnet/corefx/commit/a822fbf63517b72ba0550ea3967a80a169c7d58b
2018-01-05 10:20:46 -08:00
Wes Haggard 407ad88bdc Address PR feedback
Filter out StructLayoutAttributes as they aren't needed in contract
Fix spacing issue in tool around throw null;
Fix tool to use throw null for methods with out params
Fix bug in generating typeof attribute expressions with generic parameters

Disable obsolete warnings in project instead of source

Now System.Runtime.cs can successfully round-trip with the only
code that needs to be undone is the constants in Double/Single,
which should just stay commented out with the saying they are defined
in the manual file.


Commit migrated from https://github.com/dotnet/corefx/commit/b6485e4bbc1445a6298ae7f5f879d211651334c8
2018-01-05 10:20:12 -08:00
Wes Haggard c72f7f3920 Normalize System.Runtime ref file with latest genapi output
There are a few manual fixes up after generation to handle
some obsolete calls and some manual constants for double/single.


Commit migrated from https://github.com/dotnet/corefx/commit/b113b1340eb2bfa4252a9ad049be4d0e1c3db8b3
2018-01-04 21:29:32 -08:00
Wes Haggard 72e76002bf Fix readonly/ref ApiCompat issues found with new compat rules
Most of these are just ref assemblies that are outdated with
the implementation. This gets the contracts in sync with the current
readonly/ref annotations in the implementation.


Commit migrated from https://github.com/dotnet/corefx/commit/e116b949bd3364e9971c513f8642cdc6064cb53f
2018-01-04 21:29:32 -08:00
Justin Van Patten dccc062f19 Fix ReflectionTypeLoadExceptionTests (dotnet/corefx#26166)
Expected values should be specified before actual values, and use
Assert.Null instead of Assert.Equal for null values.

Commit migrated from https://github.com/dotnet/corefx/commit/7c6e8f4956ab542de6b345e44a1b80f31641408e
2018-01-04 18:13:50 -08:00
wtgodbe 559f46a302 Update tests
Commit migrated from https://github.com/dotnet/corefx/commit/ce1a72423cb48611239f92a5d46605da13931630
2018-01-04 13:48:22 -08:00
wtgodbe 6defcab231 Fix typo
Commit migrated from https://github.com/dotnet/corefx/commit/ccab06e41dffa9950b44aa6cfb521ad933887cbb
2018-01-04 13:18:53 -08:00
wtgodbe cc1432ada3 Fix typo
Commit migrated from https://github.com/dotnet/corefx/commit/10ef565455b8474874b9a6bbe0746f280e66418d
2018-01-04 13:18:30 -08:00
wtgodbe ef96db2ce6 Fix tests
Commit migrated from https://github.com/dotnet/corefx/commit/4e425a83ebff2959b5971ca4bef81cc09fd68a06
2018-01-04 13:15:52 -08:00
wtgodbe 8228d1a367 add finally
Commit migrated from https://github.com/dotnet/corefx/commit/8e4a84aa5ec79fc55e5a64cb680ffb93be1da87c
2018-01-04 12:11:59 -08:00
wtgodbe 5c50185f9a Remove unnecessary code
Commit migrated from https://github.com/dotnet/corefx/commit/9c7a9d1bc4eacd59c1a7464a560b0ad12d4b642f
2018-01-04 11:54:30 -08:00
wtgodbe d761a2dd81 Remove unecessary code
Commit migrated from https://github.com/dotnet/corefx/commit/c31ed55a0efaaeb73164ec100e527cb96354c289
2018-01-04 11:44:22 -08:00
wtgodbe 654cf5ff6e Add ReflectionTypeLoadException tests
Commit migrated from https://github.com/dotnet/corefx/commit/a1d4a7a6f3a12065dc8184c54695ad19b397f4a6
2018-01-04 11:42:40 -08:00
wtgodbe 8e7df257c7 Add ReflectionTypeLoadException tests
Commit migrated from https://github.com/dotnet/corefx/commit/c7f8ac7aeeaa07469345ab844cc933750506b76b
2018-01-04 11:42:17 -08:00
Jan Kotas 78f9a1655d Add test for calling Type.GetType via reflection (dotnet/corefx#26097)
Regression test for https://github.com/dotnet/coreclr/issues/15662


Commit migrated from https://github.com/dotnet/corefx/commit/2be2c457ea2c69f80be7dbc89a8306cda0d62667
2017-12-31 09:52:25 -08:00
Ahson Khan f314f97fa0 Remove DangerousTryGetArray and hide DangerousGetPinnableReference (dotnet/corefx#25964)
* Remove DangerousTryGetArray and hide DangerousGetPinnableReference

* Mark ReadOnlySpan DangerousGPR as ref readonly and update uses.

* Remove readonly keyword from ReadOnlySpan DangerousGPR

* Remove Dangerous APIs from System.Runtime reference.


Commit migrated from https://github.com/dotnet/corefx/commit/e746fa5dbc9bf111cb0591ea55f33ac72d3e40d2
2017-12-24 07:12:30 -08:00
Jon Hanna 5ecc221cc7 Add license headers. (dotnet/corefx#26009)
Any *.cs file found without the usual license header has it added except:

1. Files that note they are auto-generated.
2. Files with a different header (unless it is very close to the usual,
in which case adjust for typos and old versions).
3. FxCopBaseline.cs files.

Commit migrated from https://github.com/dotnet/corefx/commit/e5da05d7100a64ab1d98c865436a1fb8b0ddd507
2017-12-22 12:51:37 -06:00
Ahson Khan 7886be085d Convert uses of the Dangerous APIs to use MemoryMarshal.GetReference (dotnet/corefx#25936)
* Convert uses of the Dangerous APIs to use MemoryMarshal.GetReference

* Fix unresolved merge conflict.

* Add using directive

* Add missing using directives.

* Add references to System.Memory


Commit migrated from https://github.com/dotnet/corefx/commit/40cbd5636851093309b841db4d53af369b7ef1c6
2017-12-21 11:05:06 -08:00