Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed code to reenable some warnings in CoreCLR #33902

Closed
wants to merge 402 commits into from
Closed
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
402 commits
Select commit Hold shift + click to select a range
34a19e8
update libraries job to depend on corelib instead of product
mangod9 Mar 27, 2020
62dba4f
[master] Switch to Windows Server queues (dotnet/Extensions#2927)
dougbu Mar 4, 2020
0b8f8bc
Remove Serilog dependency in extensions (dotnet/Extensions#3040)
Mar 6, 2020
4cd7907
Add more tests
sywhang Mar 10, 2020
9f8fdb7
Merge pull request dotnet/Extensions#2957 from sywhang/dev/suwhang/fi…
sywhang Mar 10, 2020
4ad8f3d
Fixed variable name typo (dotnet/Extensions#3085)
DynamicField Mar 16, 2020
2fd8af5
[Host] Allow disabling reloadOnChange for Host's CreateDefaultBuilder…
kjerk Mar 19, 2020
622d99d
Need to convert from uint instead of cast here to maintain consistenc…
monojenkins Mar 27, 2020
6c709ca
Use RtlUnwind instead of RtlUnwindEx. (#34188)
jaykrell Mar 27, 2020
dd9233b
[interp] Constant fold also checked conversion opcodes (#33981)
monojenkins Mar 27, 2020
eb1ee34
reverting libraries dependency change
mangod9 Mar 27, 2020
d307a14
Active issue using 33993 (#34207)
maryamariyan Mar 27, 2020
b998b8d
Unwrap the TargetInvocationException when a IDispatch invoke throws. …
AaronRobinsonMSFT Mar 27, 2020
469e98a
Add notifyInstructionSetUsage api to jit interface (#34209)
davidwrighton Mar 27, 2020
14a2f78
Fixing ifdef (#34218)
maryamariyan Mar 27, 2020
478b77f
Add OSX and musl_arm64 corelib builds + use full product for mono
mangod9 Mar 28, 2020
e35a19c
JIT: allow CORINFO_HELP_READYTORUN_GENERIC_HANDLE to be optimized (#3…
AndyAyersMS Mar 28, 2020
fa70639
Fix the coreclr outerloop build (#34223)
jaredpar Mar 28, 2020
a6a2a3b
Another attempt to fix mono iOS case
mangod9 Mar 28, 2020
fbfb35e
propagating runtimeFlavor to libraries base-job.yml
mangod9 Mar 28, 2020
46efc4d
updating DependsOn for libraries job to use corelib
mangod9 Mar 28, 2020
65d5a72
Add RuntimeInformation.RuntimeIdentifier (#34206)
eerhardt Mar 28, 2020
4fb3931
Merge remote-tracking branch 'upstream/master'
mangod9 Mar 28, 2020
f306756
[llvm] Handle this arguments as inputs to phi nodes, i.e. for IL code…
monojenkins Mar 28, 2020
3410ce4
Move OSR related APIs to Common (#34232)
MichalStrehovsky Mar 28, 2020
450cd47
Improve platform detection for Android and SunOS (#34236)
am11 Mar 28, 2020
4790673
.NET Core to .NET branding changes (#33694)
jkotas Mar 28, 2020
e85e352
Update dependencies from https://github.com/mono/linker build 2020032…
dotnet-maestro[bot] Mar 28, 2020
57b5d81
Make LIbraries Test Build also depend on Product
mangod9 Mar 28, 2020
6436fb6
download product dependency when testScope is not null
mangod9 Mar 28, 2020
7557b78
Use separate key instances for span/array/array+offset test classes (…
bartonjs Mar 28, 2020
0683d82
reverting a change which is not required
mangod9 Mar 28, 2020
cbeeb27
Delete tiered-compilation-guide.md (#34242)
jkotas Mar 28, 2020
925837e
Update SignedXml.cs (#34238)
scott-xu Mar 28, 2020
917c1a8
Add Nightly Build feed to README.md (#34241)
FreddyDgh Mar 28, 2020
419e949
Remove a couple unnecessary ToStrings in System.DirectoryServices (#3…
stephentoub Mar 28, 2020
5eda36e
Added some stress coverage for Pinned Object Heap (#34217)
VSadov Mar 29, 2020
bfee638
Delete *.nativeproj projects (#34259)
jkotas Mar 29, 2020
19c7f5a
Rename ArchGroup -> TargetArchitecture (#34260)
jkotas Mar 30, 2020
8772dd3
Fix nullable annotation on GetIPv4Properties (#34257)
stephentoub Mar 30, 2020
4e30ff0
Switch reverse PInvoke to the NativeCallable plan (#34251)
jkotas Mar 30, 2020
f21a514
Adding runtime.depproj to libraries restore, and pretest.proj to test…
mangod9 Mar 30, 2020
38bef8c
Cleanup build scripts (#34268)
jkotas Mar 30, 2020
19e6701
Fixing run_test_job to download product artifact
mangod9 Mar 30, 2020
6b73ed5
run pretest.proj on test runs as well.
mangod9 Mar 30, 2020
15734f9
[runtime] Allocate the memory for gshared gparams from image sets. (#…
monojenkins Mar 30, 2020
bb848f6
[llvmonly] Avoid marking the rgctx/vtable variable indirect, its not …
monojenkins Mar 30, 2020
d3366b8
[interp] Optimize Span<byte>.Fill (#34219)
BrzVlad Mar 30, 2020
9168620
[wasm] Throw an exception in some blocking operations in non-threaded…
monojenkins Mar 30, 2020
829baa4
Bump maximum ICU library version in Unix System.Globalization.Native …
janvorli Mar 30, 2020
bb09589
Add libraries -restore to test run
mangod9 Mar 30, 2020
ed2e6e2
Fix for changed host behaviour on app crash (#34224)
elinor-fung Mar 30, 2020
59be94b
Unifying duplicate msbuild properties in CoreCLR build (#34261)
jkotas Mar 30, 2020
6de9884
JIT: initial workup for suppressing dumps and checks post-phase (#33305)
AndyAyersMS Mar 30, 2020
3e4a06c
Add solution files for Extensions projects (#34234)
maryamariyan Mar 30, 2020
8511b5b
Vectorise BitArray for ARM64 (#33749)
Gnbrkm41 Mar 30, 2020
b95caba
Fix EnumerableViewOfDispatch.GetEnumerator ref counting (#34230)
elinor-fung Mar 30, 2020
85a3d4e
fix TLS13 procesing on windows (#34181)
wfurt Mar 30, 2020
b186c97
Fix debug symbol generation (#34154)
janvorli Mar 30, 2020
b80554c
Generate memory barrier with inner shareable domain for ARM64 (#34227)
kunalspathak Mar 30, 2020
91d795f
Fix ASPNET package paths (#34283)
ericstj Mar 30, 2020
54418ec
Allow coreclr_create_delegate to return pointers to NativeCallable me…
jkotas Mar 30, 2020
c14ea40
Hoist volatile variable's access outside the loop (#34225)
kunalspathak Mar 30, 2020
d4d8039
Add System.Type converter for JsonSerializer (#34249)
layomia Mar 30, 2020
c3f7da2
[CBOR] Implement tag and special value support for CborWriter and Cbo…
eiriktsarpalis Mar 30, 2020
2ec1f5a
Updating pretest to use TargetArchitecture
mangod9 Mar 30, 2020
335ffb0
[mono][llvm] Improve LLVM 9 compatibility. (#34182)
imhameed Mar 30, 2020
e6c4162
Warning 4302/4311/4477 reenable: Fixed Checked Builds.
ivdiazsa Mar 26, 2020
dd6a9eb
Warning 4302/4311/4477 iteration 3
ivdiazsa Mar 27, 2020
0b9c8f6
Warning 4477 reenable iteration 4: ToString of bits.
ivdiazsa Mar 27, 2020
14b22b0
Fixed an unsigned long long for x86.
ivdiazsa Mar 27, 2020
c59ae67
Fixed 4477 on x86 for real this time.
ivdiazsa Mar 28, 2020
162595e
Fix wrong assert in cgroups code (#34291)
janvorli Mar 30, 2020
77dfbcf
Merge remote-tracking branch 'upstream/master'
mangod9 Mar 30, 2020
c7a1ef6
Make `compCurBB` available for `fgMorphBlockReturn`. (#34184)
Mar 31, 2020
b85563d
Flow TargetArchitecture always in Unix build script (#34300)
safern Mar 31, 2020
562232c
Explicitly throw the OutOfMemoryException instead of relying on Share…
felipepessoto Mar 31, 2020
d9b1a28
Restore TargetArchitecture default (#34295)
jkotas Mar 31, 2020
94c4b52
Revert "Switch reverse PInvoke to the NativeCallable plan (#34251)" (…
safern Mar 31, 2020
f24bf6d
Condition before/after import in IL.Sdk for pre5.0 (#34278)
ViktorHofer Mar 31, 2020
e6d4882
Moving runtime restore from \restore\dirs.proj
mangod9 Mar 31, 2020
87e7991
Change PublicKeyToken for M.E. src and test projects
maryamariyan Mar 27, 2020
96a3bfe
Merge pull request #34208 from maryamariyan/inspection
maryamariyan Mar 31, 2020
e58c937
Remove TargetOS renaming under installer (#34313)
jkotas Mar 31, 2020
c74407f
Streamline C heap allocations (#34289)
jkotas Mar 31, 2020
afe6717
fix -allConfigurations build
mangod9 Mar 31, 2020
c2466ee
[runtime] Fix a problem with PR mono/mono#19361. (#34299)
monojenkins Mar 31, 2020
aa032a0
Initial perf jitdump implementation (#33893)
monojenkins Mar 31, 2020
11ffcdc
[mono] Use $(HostArch) for LLVM packages (#34322)
EgorBo Mar 31, 2020
eadf2c7
Expression.Field should validate field name for null (#34301)
vitek-karas Mar 31, 2020
be469ad
Update Microsoft.CodeAnalysis.FxCopAnalyzers to 3.0.0-beta3.final (#3…
stephentoub Mar 31, 2020
372bf42
[mono] Implement Environment.GetFolderPath on iOS (#34022)
EgorBo Mar 31, 2020
a082f9c
Adding corelib job to coreclr=and=Libraries.
mangod9 Mar 31, 2020
ffa07d3
Remove inactive JsonElement test that depends on JSON path being set …
layomia Mar 31, 2020
85bf770
Check for COM registration functions on base types of registered type…
elinor-fung Mar 31, 2020
f973e96
Guard against deserializing types with open generics (#34163)
layomia Mar 31, 2020
90d1b62
Cache parameterized ctor delegates in class info rather than converte…
layomia Mar 31, 2020
6bdcd8e
Apply formatting patch (#34333)
jkotas Mar 31, 2020
fec325d
Add corelib to other pipelines.
mangod9 Mar 31, 2020
57eb3bd
[debugger] Adding static to ss_req_acquire and ss_req_count (#34327)
monojenkins Mar 31, 2020
a9ace0f
NativeCallable bugfixes (#34335)
jkotas Mar 31, 2020
852080e
Initial proposal for P/Invokes via Source Generators (#33742)
AaronRobinsonMSFT Mar 31, 2020
45b2095
update brancing to preview4 (#34338)
Anipik Mar 31, 2020
595a95c
add support for FreeBSD cross-compilation (#34000)
wfurt Mar 31, 2020
03f252c
Fix ProfileTailCallNaked so it doesn't write xmm1 past the end of its…
davmason Mar 31, 2020
dfef8c3
libraries test should depend on full product
mangod9 Mar 31, 2020
8876693
[FileSystem] ReAdd check for same device (#34343)
mdh1418 Mar 31, 2020
9a14b86
Fixing intellisense in vscode for src and ref projects (#34025)
Anipik Mar 31, 2020
2e4d00a
remove upload unsigned artifacts step from official build
mangod9 Mar 31, 2020
669d749
Changed two bitness checks for size_t usage instead.
ivdiazsa Apr 1, 2020
8e8090c
Disable test based on 34178 (#34179)
Apr 1, 2020
2ad6913
Fix System.Data.SqlClient baseline (#34352)
mmitche Apr 1, 2020
e1fa5d7
Disable Bitmap round-tripping tests for old libgdiplus versions (#34354)
jkotas Apr 1, 2020
77f8f7c
[mono] Set MArch in llvm-jit (#34350)
EgorBo Apr 1, 2020
564a5d6
[mono] Fix LLVM JIT build on arm64 host (#34332)
EgorBo Apr 1, 2020
0ff46ab
[mono] fix SIMD instructions' availability (#34319)
EgorBo Apr 1, 2020
a4fa31e
Fix build break in coreclr where -os is not supported in Windows (#34…
safern Apr 1, 2020
97af1e4
Remove duplicated .gitignore patterns (#34281)
Apr 1, 2020
ab45b51
[mono] Fix setMArch, getArchName() doesn't work as expected (#34368)
EgorBo Apr 1, 2020
42dfd0d
Merge remote-tracking branch 'upstream/master'
mangod9 Apr 1, 2020
ba6a143
Call into ETW methods in ConcurrentBag only when logging is enabled (…
marek-safar Apr 1, 2020
9f2b294
Disable test on windows and enable on other platforms (#34331)
Apr 1, 2020
676cb17
Revert "Revert "Switch reverse PInvoke to the NativeCallable plan (#3…
jkotas Apr 1, 2020
87050f5
Update ownership of area-System.ServiceModel (#34408)
StephenBonikowsky Apr 1, 2020
796dc8e
[mono] Fix finalizer thread init in iOS sample (#34405)
alexischr Apr 1, 2020
15abeaa
[wasm] Throw an exception when trying to start a thread instead of as…
monojenkins Apr 1, 2020
bf4b572
Ensure generic parameter constraint type is included when building im…
monojenkins Apr 1, 2020
45ed8fd
Perf followup for Pinned Object Heap (#34215)
VSadov Apr 1, 2020
a7f3efb
update perf jitdump for ppc64/ppc64le and s390x (#34373)
monojenkins Apr 1, 2020
fd7c2ce
Report correct max depth in exception message (#34410)
thomaslevesque Apr 1, 2020
b5d044d
Build managed part of crossgen2 as platform independent (AnyCPU) (#33…
gbalykov Apr 1, 2020
56bf4c0
PR Comments
mangod9 Apr 1, 2020
18e5190
typo fix :(
mangod9 Apr 1, 2020
c03c529
Fix write behind allocated memory in thread name setting (#34424)
janvorli Apr 2, 2020
e76db3a
Fix run-test-job pretest build
mangod9 Apr 2, 2020
e98c471
Eliminate dead configuration code (#34285)
cshung Apr 2, 2020
45f58f9
Delete Ubuntu 14.04 conditions (#34361)
jkotas Apr 2, 2020
4a57527
Add test for native library load through AssemblyLoadContext.LoadUnma…
elinor-fung Apr 2, 2020
907b5ae
Move StrongNameKeyId=Open default value down after arcade is imported…
safern Apr 2, 2020
e3c15b0
removed some unused corelib configs.
mangod9 Apr 2, 2020
a4a1c8b
Initial Mono Android CI (#34125)
directhex Apr 2, 2020
ba80c1d
Fix crossgen2 delegates to static generic methods (#34370)
janvorli Apr 2, 2020
2b09375
Enhance PAL initialization order (#34308)
janvorli Apr 2, 2020
3945610
Fix ordering of the instructions (#34447)
kant2002 Apr 2, 2020
a95705d
R2RDump fixes for parsing composite images (#34429)
trylek Apr 2, 2020
c8b9cf1
Fix large version bubble field offset computation (#34401)
janvorli Apr 2, 2020
7dab162
Update WASM image (#34421)
jaredpar Apr 2, 2020
b927233
Merge pull request #34166 from mangod9/master
mangod9 Apr 2, 2020
70715fb
Prevent return address hijacking of NativeCallable method
janvorli Apr 2, 2020
90689b2
[wasm][debugger] Add support for visualizing valuetypes (#33604)
monojenkins Apr 2, 2020
d5e9504
[loader] Add append option to loader hook installation functions (#34…
CoffeeFlux Apr 2, 2020
b68f9d1
fix iOS sample build (#34455)
EgorBo Apr 2, 2020
6a27404
[meta] Add mono_type_get_name_full to public API (#34436)
CoffeeFlux Apr 2, 2020
61d1e78
Add build configuration to generate runtime packs for iOS (#34050)
steveisok Apr 2, 2020
1c74287
Experimental pgo tool (#34433)
davidwrighton Apr 2, 2020
73d8178
Sync changes from ASP.NET Core dynamic HPack (#34247)
JamesNK Apr 2, 2020
a2f2bb9
Move the reverse pinvoke frame check to EECodeManager
janvorli Apr 2, 2020
3c1010c
Enable warn as error for libraries (#34457)
jaredpar Apr 2, 2020
8398e53
Remove @jeremykuhne from area owners (#34483)
danmoseley Apr 3, 2020
8259df7
Arm64: Add xtn and xtn2 intrinsics codegen, api and tests. (#33108)
TamarChristinaArm Apr 3, 2020
221f869
Remove -runtime version suffix hack for M.E. (#34464)
maryamariyan Apr 3, 2020
0375524
Disable iOS arm PR builds (#34467)
akoeplinger Apr 3, 2020
c815129
Fix Unix build break
janvorli Apr 3, 2020
83bbaba
Fix two issues detected by Valgrind (#34462)
janvorli Apr 3, 2020
be828d1
[mono][sre] Add an expected attribute on underlying fields of enum cl…
alexischr Apr 3, 2020
6d3dc44
[sgen] Implement api for allocating pinned arrays (#34398)
BrzVlad Apr 3, 2020
39db2a8
Fix subsetCategory is just one `-` not two `--` (#34498)
nietras Apr 3, 2020
0b246c0
Don't build `System.Utf8String.Experimental.Tests.csproj` tests for m…
EgorBo Apr 3, 2020
07187e3
Fix WriteLargeJsonToStreamWithoutFlushing test (#34489)
layomia Apr 3, 2020
3ab97fc
Port CoreCLR's TypeNameBuilder to C#, and use it in Mono too (#33701)
alexischr Apr 3, 2020
fd60286
Delete stale CPU cache size detection (#34488)
jkotas Apr 3, 2020
66ded9c
Add armel arch in help message (#34491)
gbalykov Apr 3, 2020
dad74cc
Parallel Builds PRv2 (#34460)
mangod9 Apr 3, 2020
b8c9296
Crossgen2 fixes to enable composite build with shared framework (#34431)
trylek Apr 3, 2020
c64c31a
Disable iOS_arm builds on official builds too (#34504)
akoeplinger Apr 3, 2020
223b843
[CBOR] Add a CborReader.SkipValue() method (#34477)
eiriktsarpalis Apr 3, 2020
b755ba9
Socket.Windows: support ConnectAsync(SocketAsyncEventArgs) for UDP, a…
tmds Apr 3, 2020
5cd7e97
Enable nullable reference types for mono's Corelib (#34400)
stephentoub Apr 3, 2020
c21c7fd
Add profiler tests to the runtime repo (#34411)
davmason Apr 3, 2020
5ac25ac
Hardware instruction set support for crossgen2 (#33274)
davidwrighton Apr 3, 2020
1ac25b4
Moving more Tfm specific properties to the targetFramework.props file…
Anipik Apr 3, 2020
4dde980
Little refactoring based on PR feedback
janvorli Apr 4, 2020
2f209e6
Fix building WinRT tests on new Windows SDK (with new cppwinrt). (#34…
jkoritzinsky Apr 4, 2020
510efdf
BitOperations arm64 intrinsic for LeadingZeroCount, TrailingZeroCount…
kunalspathak Apr 4, 2020
b93829c
Move DependencyModel to libraries (#34296)
eerhardt Apr 4, 2020
4e179eb
Update Dotnet host for testing and other runtime => runtime dependenc…
eerhardt Apr 4, 2020
121659c
[wasm][debugger] Improve array visualization (#34482)
monojenkins Apr 4, 2020
7955318
Fix testhost publish condition and omptimize assets we publish in off…
safern Apr 4, 2020
a605729
[wasm] Wasm TimeZoneInfo implementation VFS (#34186)
monojenkins Apr 4, 2020
5e6b441
Fixup more package dependencies for Microsoft.Windows.Compatibility (…
mmitche Apr 4, 2020
9f0c540
Define dirent d_type for Solaris based OS (#34263)
am11 Apr 4, 2020
9d23b84
Added links to issues in issues.targets. (#34530)
Apr 4, 2020
97b95ad
Update formatting (#34538)
bsivanov Apr 4, 2020
363b7ad
Memory leak during marshal failure. (#34533)
AaronRobinsonMSFT Apr 4, 2020
d818d33
Disable test DnsGetHostEntry_LocalHost_ReturnsFqdnAndLoopbackIPs (#34…
karelz Apr 4, 2020
6069f59
Add test for max depth in exception message (#34528)
thomaslevesque Apr 4, 2020
e253ff3
[debugger] Bump protocol for multi threaded single step implementati…
monojenkins Apr 4, 2020
59ec53e
Adds scripting guide doc (#34539)
marcusturewicz Apr 5, 2020
a9ce822
Fix host linker options to have -Bsymbolic (#34534)
elinor-fung Apr 5, 2020
d600eab
Remove a few string allocations from System.IO.FileSystem (#34551)
stephentoub Apr 5, 2020
6509062
[WIP] LLVM changes (#33847)
monojenkins Apr 5, 2020
6996928
Fix memory leak in SuperPMI (#34523)
BruceForstall Apr 5, 2020
68625db
[llvm] Enable optimizations for LLVM 9 JIT. (#34555)
monojenkins Apr 5, 2020
6d395de
Support ECParameters that contain only D on Windows and Linux
vcsjones Apr 5, 2020
59ca590
Fix incorrect assumption around the presence of ICF frames in EH code…
Apr 6, 2020
42183b1
Enable restore for ref and src projects in libs (#33553)
ViktorHofer Apr 6, 2020
f96b428
Fix x86 build break and reflect PR feedback
janvorli Apr 6, 2020
62112b0
Remove entry point helper scripts (#33756)
ViktorHofer Apr 6, 2020
3e0b19f
Changed triggered by the StringBuilder analyzer (#34574)
Apr 6, 2020
392dd8b
Add cgroup v2 support to coreclr
omajid Mar 31, 2020
9a58ab8
Fix Linux x86 build (#34548)
gbalykov Apr 6, 2020
f0e5bcd
Fix contructor attributes nullability in S.R.E.CustomAttributeBuilder…
marcusturewicz Apr 6, 2020
99aa064
Add build configuration to generate runtime packs for Android (#34192)
mdh1418 Apr 6, 2020
e622160
Fix missing version info in host binaries (#34520)
elinor-fung Apr 6, 2020
5346d57
Adds tests for missing object and collection properties in S.T.J.S (#…
marcusturewicz Apr 6, 2020
986518e
Enable more nullable reference types in asn.xslt.
vcsjones Apr 6, 2020
aa5341b
[llvm] Define a separate symbol for the aot method info for every met…
monojenkins Apr 6, 2020
1d4e945
SuperIlc fixes to unblock composite build using the shared library (#…
trylek Apr 6, 2020
d02ee5b
Don't test ANSI any mapping on non en-US locales. (#34599)
AaronRobinsonMSFT Apr 6, 2020
5dcf3de
Adds de/serialization support for JsonDocument (#34537)
marcusturewicz Apr 6, 2020
81fe6be
[mono] Implement Arm intrinsics: ArmBase, Crc32 (#34240)
EgorBo Apr 7, 2020
9cb4931
Missed feedback. (#34622)
AaronRobinsonMSFT Apr 7, 2020
ba9dd79
moving more tfm dependent properties to targets file (#34532)
Anipik Apr 7, 2020
9ddbf5f
Add back support for Delegate field marshaling (#34620)
AaronRobinsonMSFT Apr 7, 2020
1f0c9cd
Use valid instructions in StubPrecode and NDirectImportPrecode on x64…
jkotas Apr 7, 2020
410b992
Change FrameworkName to .NET (#34615)
jkotas Apr 7, 2020
247b657
Fix IsBlittable flag bug on types. (#34613)
Apr 7, 2020
caab744
Add cgroup v2 support to coreclr (#34334)
janvorli Apr 7, 2020
6a5349f
[sgen] Fix coverity issue (#34629)
BrzVlad Apr 7, 2020
c69845b
Merge pull request #34468 from janvorli/fix-native-callable-method-hi…
janvorli Apr 7, 2020
19a3cb1
Use HostArch as a default TargetArchitecture (#34619)
EgorBo Apr 7, 2020
29ed7be
Restore followup (#34632)
ViktorHofer Apr 7, 2020
8aa97da
Fix ObjectDisposedException in FileSystemWatcher.OSX.cs (#34589)
stephentoub Apr 7, 2020
39cde70
Feed cleanup (#34044)
mmitche Apr 7, 2020
60acb6c
First fixes to print hex without silencing warning 4477.
ivdiazsa Mar 16, 2020
cfe41ad
After the previous commit, dasm.cpp started showing abnormalities.
ivdiazsa Mar 16, 2020
67fe344
Warning 4302 reenable iteration 1
ivdiazsa Mar 18, 2020
5e809a4
Warning 4302 reenable iteration 2
ivdiazsa Mar 18, 2020
86a4c8d
Warning 4312 reenable: Iteration 1
ivdiazsa Mar 20, 2020
51687e5
Warning 4312 reenable: Iteration 2
ivdiazsa Mar 20, 2020
b53ea6c
Updated configurecompiler.cmake comments with newly reenabled warnings.
ivdiazsa Mar 21, 2020
bea41c2
Fixed a comment.
ivdiazsa Mar 21, 2020
bdbb4d2
Fixed a 32-bit issue with printing formats as well as a scope issue o…
ivdiazsa Mar 25, 2020
51e4e13
Warning 4302/4311/4477 reenable: Fixed Checked Builds.
ivdiazsa Mar 26, 2020
2a8c507
Warning 4302/4311/4477 iteration 3
ivdiazsa Mar 27, 2020
fc467a1
Warning 4477 reenable iteration 4: ToString of bits.
ivdiazsa Mar 27, 2020
3aa8db8
Fixed an unsigned long long for x86.
ivdiazsa Mar 27, 2020
32f0fa0
Fixed 4477 on x86 for real this time.
ivdiazsa Mar 28, 2020
656c660
Changed two bitness checks for size_t usage instead.
ivdiazsa Apr 1, 2020
beb4e99
Merge branch 'warning_compliance_code' of https://github.com/ivdiazsa…
ivdiazsa Apr 7, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/coreclr/configurecompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,7 @@ if (MSVC)

# Disable Warnings:
# 4291: Delete not defined for new, c++ exception may cause leak.
# 4302: Truncation from '%$S' to '%$S'.
# 4311: Pointer truncation from '%$S' to '%$S'.
# 4312: '<function-style-cast>' : conversion from '%$S' to '%$S' of greater size.
# 4477: Format string '%$S' requires an argument of type '%$S', but variadic argument %d has type '%$S'.
add_compile_options(/wd4291 /wd4302 /wd4311 /wd4312 /wd4477)
add_compile_options(/wd4291)

# Treat Warnings as Errors:
# 4007: 'main' : must be __cdecl.
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/src/debug/daccess/daccess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7307,7 +7307,7 @@ ClrDataAccess::GetDacGlobals()
}

if (FAILED(status = GetResourceRvaFromResourceSectionRvaByName(m_pTarget, m_globalBase,
resourceSectionRVA, (DWORD)RT_RCDATA, _WIDE(DACCESS_TABLE_RESOURCE), 0,
resourceSectionRVA, (DWORD)(size_t)RT_RCDATA, _WIDE(DACCESS_TABLE_RESOURCE), 0,
&rsrcRVA, &rsrcSize)))
{
_ASSERTE_MSG(false, "DAC fatal error: can't locate DAC table resource in " TARGET_MAIN_CLR_DLL_NAME_A);
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/src/debug/ee/debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13947,7 +13947,7 @@ void GenericHijackFuncHelper()
if (pEEThread != NULL)
{
// We've got a Thread ptr, so get the continue type out of the thread's debugger word.
continueType = (DWORD)threadDebuggerWord;
continueType = (DWORD)(size_t) threadDebuggerWord;

_ASSERTE(pEEThread->GetInteropDebuggingHijacked());
pEEThread->SetInteropDebuggingHijacked(FALSE);
Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/src/ildasm/dasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3824,7 +3824,7 @@ lDone: ;
}
else
{
sprintf_s(szString,SZSTRING_SIZE, "INVALID METHOD ADDRESS: 0x%8.8X (RVA: 0x%8.8X)",(size_t)newTarget,dwTargetRVA);
sprintf_s(szString,SZSTRING_SIZE, "INVALID METHOD ADDRESS: 0x%8.8zX (RVA: 0x%8.8X)",(size_t)newTarget,dwTargetRVA);
printError(GUICookie,szString);
}
}
Expand Down Expand Up @@ -4987,7 +4987,7 @@ void DumpVTables(IMAGE_COR20_HEADER *CORHeader, void* GUICookie)
}
else
{
sprintf_s(szString,SZSTRING_SIZE,"// [0x%04x] (0x%16x)", iSlot, VAL64(*(unsigned __int64 *) pSlot));
sprintf_s(szString,SZSTRING_SIZE,"// [0x%04x] (0x%16llx)", iSlot, VAL64(*(unsigned __int64 *) pSlot));
pSlot += sizeof(unsigned __int64);
}
printLine(GUICookie,szStr);
Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/src/inc/holder.h
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ class BaseWrapper : public BaseHolder<TYPE, BASE, DEFAULTVALUE, IS_NULL>
{
return !!(this->m_value != TYPE(value));
}
#ifdef __GNUC__

// This handles the NULL value that is an int and clang
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A nit - the comment talks about clang, but it should be changed to "the compiler"

// doesn't want to convert int to a pointer
FORCEINLINE bool operator==(int value) const
Expand All @@ -619,7 +619,7 @@ class BaseWrapper : public BaseHolder<TYPE, BASE, DEFAULTVALUE, IS_NULL>
{
return !!(this->m_value != TYPE((void*)(SIZE_T)value));
}
#endif // __GNUC__

FORCEINLINE const TYPE &operator->() const
{
return this->m_value;
Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/src/inc/stdmacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@
#define INVALID_POINTER_CD 0xcdcdcdcdcdcdcdcd
#define FMT_ADDR " %08x`%08x "
#define LFMT_ADDR W(" %08x`%08x ")
#define DBG_ADDR(ptr) (((UINT_PTR) (ptr)) >> 32), (((UINT_PTR) (ptr)) & 0xffffffff)
#define DBG_ADDR(ptr) (DWORD)(((UINT_PTR) (ptr)) >> 32), (DWORD)(((UINT_PTR) (ptr)) & 0xffffffff)
#else // HOST_64BIT
#define INVALID_POINTER_CC 0xcccccccc
#define INVALID_POINTER_CD 0xcdcdcdcd
#define FMT_ADDR " %08x "
#define LFMT_ADDR W(" %08x ")
#define DBG_ADDR(ptr) ((UINT_PTR)(ptr))
#define DBG_ADDR(ptr) (DWORD)((UINT_PTR)(ptr))
#endif // HOST_64BIT

#ifdef TARGET_ARM
Expand Down
6 changes: 3 additions & 3 deletions src/coreclr/src/inc/utilcode.h
Original file line number Diff line number Diff line change
Expand Up @@ -5002,7 +5002,7 @@ inline T* InterlockedExchangeT(
int value) // When NULL is provided as argument.
{
//STATIC_ASSERT(value == 0);
return InterlockedExchangeT(target, reinterpret_cast<T*>(value));
return InterlockedExchangeT(target, nullptr);
}

template <typename T>
Expand All @@ -5012,7 +5012,7 @@ inline T* InterlockedCompareExchangeT(
T* comparand)
{
//STATIC_ASSERT(exchange == 0);
return InterlockedCompareExchangeT(destination, reinterpret_cast<T*>(exchange), comparand);
return InterlockedCompareExchangeT(destination, nullptr, comparand);
}

template <typename T>
Expand All @@ -5022,7 +5022,7 @@ inline T* InterlockedCompareExchangeT(
int comparand) // When NULL is provided as argument.
{
//STATIC_ASSERT(comparand == 0);
return InterlockedCompareExchangeT(destination, exchange, reinterpret_cast<T*>(comparand));
return InterlockedCompareExchangeT(destination, exchange, nullptr);
}

// NULL pointer variants of the above to avoid having to cast NULL
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/src/utilcode/stacktrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ __out_ecount (cchMaxAssertStackLevelStringLen) CHAR *pszString // @parm Plac
{
sprintf_s(pszString,
cchMaxAssertStackLevelStringLen,
"%s! %s + 0x%X (0x" FMT_ADDR_BARE ")",
"%s! %s + 0x%llX (0x" FMT_ADDR_BARE ")",
(psi->achModule[0]) ? psi->achModule : "<no module>",
(psi->achSymbol[0]) ? psi->achSymbol : "<no symbol>",
psi->dwOffset,
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/src/vm/comcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ class CtxEntryCacheTraits : public DefaultSHashTraits<CtxEntry *>
static CtxEntry *Null() { LIMITED_METHOD_CONTRACT; return NULL; }
static bool IsNull(CtxEntry *e) { LIMITED_METHOD_CONTRACT; return (e == NULL); }
static const LPVOID GetKey(CtxEntry *e) { LIMITED_METHOD_CONTRACT; return e->GetCtxCookie(); }
static count_t Hash(LPVOID key_t) { LIMITED_METHOD_CONTRACT; return (count_t) key_t; }
static count_t Hash(LPVOID key_t) { LIMITED_METHOD_CONTRACT; return (count_t)(size_t) key_t; }
static BOOL Equals(LPVOID lhs, LPVOID rhs) { LIMITED_METHOD_CONTRACT; return (lhs == rhs); }
static CtxEntry *Deleted() { LIMITED_METHOD_CONTRACT; return (CtxEntry *)-1; }
static bool IsDeleted(CtxEntry *e) { LIMITED_METHOD_CONTRACT; return e == (CtxEntry *)-1; }
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/src/vm/compile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3024,7 +3024,7 @@ HRESULT NGenModulePdbWriter::WritePDBData()
if (strcmp((const char *)&section[sectionIndex].Name[0], ".text") == 0) {
_ASSERTE((iCodeSection == 0) && (pCodeBase == NULL));
iCodeSection = (USHORT)(sectionIndex + 1);
pCodeBase = (BYTE *)section[sectionIndex].VirtualAddress;
pCodeBase = (BYTE *)(size_t)section[sectionIndex].VirtualAddress;
}

// In order to support the DIA RVA-to-lines API against the PDB we're
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/src/vm/interoplibinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ namespace
public:
using key_t = void*;
static const key_t GetKey(_In_ element_t e) { LIMITED_METHOD_CONTRACT; return (key_t)e->Identity; }
static count_t Hash(_In_ key_t key) { LIMITED_METHOD_CONTRACT; return (count_t)key; }
static count_t Hash(_In_ key_t key) { LIMITED_METHOD_CONTRACT; return (count_t)(size_t)key; }
static bool Equals(_In_ key_t lhs, _In_ key_t rhs) { LIMITED_METHOD_CONTRACT; return (lhs == rhs); }
};

Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/src/vm/runtimecallablewrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -1998,7 +1998,7 @@ private :
static RCW *Null() { LIMITED_METHOD_CONTRACT; return NULL; }
static bool IsNull(RCW *e) { LIMITED_METHOD_CONTRACT; return (e == NULL); }
static const LPVOID GetKey(RCW *e) { LIMITED_METHOD_CONTRACT; return e->m_pIdentity; }
static count_t Hash(LPVOID key_t) { LIMITED_METHOD_CONTRACT; return (count_t)key_t; }
static count_t Hash(LPVOID key_t) { LIMITED_METHOD_CONTRACT; return (count_t)(size_t) key_t; }
static BOOL Equals(LPVOID lhs, LPVOID rhs) { LIMITED_METHOD_CONTRACT; return (lhs == rhs); }
static RCW *Deleted() { LIMITED_METHOD_CONTRACT; return (RCW *)-1; }
static bool IsDeleted(RCW *e) { LIMITED_METHOD_CONTRACT; return e == (RCW *)-1; }
Expand Down
9 changes: 5 additions & 4 deletions src/coreclr/src/vm/virtualcallstub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ void VirtualCallStubManager::StartupLogging()
}

#define OUTPUT_FORMAT_INT "\t%-30s %d\r\n"
#define OUTPUT_FORMAT_SIZE "\t%-30s %zu\r\n"
#define OUTPUT_FORMAT_PCT "\t%-30s %#5.2f%%\r\n"
#define OUTPUT_FORMAT_INT_PCT "\t%-30s %5d (%#5.2f%%)\r\n"

Expand Down Expand Up @@ -366,7 +367,7 @@ void VirtualCallStubManager::LoggingDump()
size_t total, used;
g_resolveCache->GetLoadFactor(&total, &used);

sprintf_s(szPrintStr, COUNTOF(szPrintStr), OUTPUT_FORMAT_INT, "cache_entry_used", used);
sprintf_s(szPrintStr, COUNTOF(szPrintStr), OUTPUT_FORMAT_SIZE, "cache_entry_used", used);
WriteFile (g_hStubLogFile, szPrintStr, (DWORD) strlen(szPrintStr), &dwWriteByte, NULL);
sprintf_s(szPrintStr, COUNTOF(szPrintStr), OUTPUT_FORMAT_INT, "cache_entry_counter", g_cache_entry_counter);
WriteFile (g_hStubLogFile, szPrintStr, (DWORD) strlen(szPrintStr), &dwWriteByte, NULL);
Expand All @@ -381,7 +382,7 @@ void VirtualCallStubManager::LoggingDump()
sprintf_s(szPrintStr, COUNTOF(szPrintStr), OUTPUT_FORMAT_INT, "bucket_space_dead", g_bucket_space_dead);
WriteFile (g_hStubLogFile, szPrintStr, (DWORD) strlen(szPrintStr), &dwWriteByte, NULL);

sprintf_s(szPrintStr, COUNTOF(szPrintStr), "\r\ncache_load:\t%d used, %d total, utilization %#5.2f%%\r\n",
sprintf_s(szPrintStr, COUNTOF(szPrintStr), "\r\ncache_load:\t%zu used, %zu total, utilization %#5.2f%%\r\n",
used, total, 100.0 * double(used) / double(total));
WriteFile (g_hStubLogFile, szPrintStr, (DWORD) strlen(szPrintStr), &dwWriteByte, NULL);

Expand Down Expand Up @@ -3112,14 +3113,14 @@ void VirtualCallStubManager::LogStats()
size_t total, used;
g_resolveCache->GetLoadFactor(&total, &used);

sprintf_s(szPrintStr, COUNTOF(szPrintStr), OUTPUT_FORMAT_INT, "cache_entry_used", used);
sprintf_s(szPrintStr, COUNTOF(szPrintStr), OUTPUT_FORMAT_SIZE, "cache_entry_used", used);
WriteFile (g_hStubLogFile, szPrintStr, (DWORD) strlen(szPrintStr), &dwWriteByte, NULL);
sprintf_s(szPrintStr, COUNTOF(szPrintStr), OUTPUT_FORMAT_INT, "cache_entry_counter", stats.cache_entry_counter);
WriteFile (g_hStubLogFile, szPrintStr, (DWORD) strlen(szPrintStr), &dwWriteByte, NULL);
sprintf_s(szPrintStr, COUNTOF(szPrintStr), OUTPUT_FORMAT_INT, "cache_entry_space", stats.cache_entry_space);
WriteFile (g_hStubLogFile, szPrintStr, (DWORD) strlen(szPrintStr), &dwWriteByte, NULL);

sprintf_s(szPrintStr, COUNTOF(szPrintStr), "\r\ncache_load:\t%d used, %d total, utilization %#5.2f%%\r\n",
sprintf_s(szPrintStr, COUNTOF(szPrintStr), "\r\ncache_load:\t%zu used, %zu total, utilization %#5.2f%%\r\n",
used, total, 100.0 * double(used) / double(total));
WriteFile (g_hStubLogFile, szPrintStr, (DWORD) strlen(szPrintStr), &dwWriteByte, NULL);
}
Expand Down