summaryrefslogtreecommitdiff
path: root/src/classlibnative
AgeCommit message (Collapse)AuthorFilesLines
2020-04-16Fix PIE options (#26323)submit/tizen/20200415.223728accepted/tizen/unified/20200416.080052Jan Vorlicek2-8/+0
* Fix PIE options We were missing passing the -pie linker option. That means that while we were compiling our code as position independent, the executables (not shared libraries) were not marked as position independent and ASLR was not applied to them. They were always loaded to fixed addresses. This change adds the missing -pie option and also replaces all the individual settings of -fPIE / -fPIC on the targets we build by a centralized setting of CMAKE_POSITION_INDEPENDENT_CODE variable that causes cmake to add the appropriate compiler options everywhere. * Fix native parts of coreclr tests build The native parts of the tests are not built using the root CMakeLists.txt so I am moving enabling the position independent code to configurecompiler.cmake Change-Id: Ieafff8984ec23e5fdb00fb0c2fb017e53afbce88
2020-01-14Revert CPU clipping in the presence of CPU quota to 3.0, 2.x behavior.Vladimir Sadov1-0/+7
Basically reverting https://github.com/dotnet/coreclr/pull/26806
2019-09-22Do not clip CPU count when CPU quota is used. (#26153) (#26806)Jan Kotas1-7/+0
2019-06-18Relax signed/unsigned checks in Array.Copy to match other places (#25209)Jan Kotas1-1/+2
Disable failing tests. Also enable tests for changes that propagated through the system. Fixes dotnet/corefx#38535
2019-06-04Synchronize managed and unmanaged Variant fields (#24951)Jan Kotas2-81/+0
* Synchronize managed and unmanaged Variant fields Fixes #24948
2019-05-30Add Environment.TickCount64 (#24857)Stephen Toub2-0/+9
2019-05-14Fix issues reported by PREfast static analysis tool (#24577)Jan Kotas1-1/+1
2019-05-14Fix a contract violation in ThreadPool.get_CompletedWorkItemCount (#24535)Koundinya Veluri2-5/+12
Fix a contract violation in ThreadPool.get_CompletedWorkItemCount Fixes https://github.com/dotnet/coreclr/issues/24515 - Looks like the path that acquires the thread store lock has code that is marked witH GC_TRIGGERS - Changed ThreadPool.get_CompletedWorkItemCount and Monitor.get_LockContentionCount to use QCalls instead of FCalls
2019-05-10Move EventProvider native layout to be driven by CMake configure (#24478)Jeremy Koritzinsky2-0/+3
* Generate eventpipe implementation as part of CMake configure. * Generate Etw provider as part of CMake configure. * First pass porting over lttng provider to cmake. * Fix up CMake Lttng provider generation. * Move Lttng provider into CMake tree. * Move dummy event provider to CMake * Move genEventing into the CMake tree. * Remove extraneous logging and unused python locator. * Clean up build.sh * Clean up genEventingTests.py * Add dependencies to enable more incremental builds (providers not fully incremental). * Convert to custom command and targets instead of at configure time. * Get each eventing target to incrementally build. * Fix incremental builds * Add missing dependencies on eventing headers. * PR Feedback. Mark all generated files as generated * Clean up eventprovider test CMakeLists
2019-05-08Remove more MDA support code (#24457)Steve MacLean1-13/+0
* Remove more MDA support code * PR Feedback
2019-05-03Implement String.IsAscii in shared CoreLib and use it for [Is]Normalize[d] ↵Filip Navara1-23/+0
for all runtimes (#24373)
2019-04-19Implement APIs for some threading metrics (CoreCLR) (#24113)Koundinya Veluri2-0/+7
Implement APIs for some threading metrics (CoreCLR) API review: https://github.com/dotnet/corefx/issues/35500
2019-04-13Delete COMPlus_FinalizeOnShutdown (#23595)Jan Kotas2-14/+1
This compat quirk is increasingly more broken since the framework is generally not compatible with, and we have not heard anybody actually using it. Changed Environment.HasShutdownStarted to unconditionally return false. It does not make sense for it to ever return true with shutdown finalization disabled.
2019-04-09Remove Unix CPU groups emulationJan Vorlicek1-1/+2
This change removes CPU groups emulation from Unix PAL and modifies the GC and thread pool code accordingly.
2019-04-03Remove ADID and ADIndex from CoreCLR (#23588)David Wrighton3-6/+6
- Remove concept of AppDomain from object api in VM - Various infrastructure around entering/leaving appdomains is removed - Add small implementation of GetAppDomain for use by DAC (to match existing behavior) - Simplify finalizer thread operations - Eliminate AppDomain::Terminate - Remove use of ADID from stresslog - Remove thread enter/leave tracking from AppDomain - Remove unused asm constants across all architectures - Re-order header inclusion order to put gcenv.h before handletable - Remove retail only sync block code involving appdomain index
2019-03-29Unify clang with GNUCSinan Kaya1-6/+6
Enable SSE for GCC
2019-03-18Add Utf8String skeleton (#23209)Levi Broderick1-0/+3
Utf8String is an experimental type that is string-like (heap-allocated, immutable, variable-length, null-terminated) but whose inner representation is UTF-8, not UTF-16. This is a skeleton implementation of the basic API shape. The ecosystem of APIs has not yet been built around it. All Utf8String-related code is currently surrounded by ifdefs to allow easy identification and removal from release branches.
2019-03-07Fix signed compare warningsSinan Kaya1-1/+1
warning: comparison between signed and unsigned integer expressions [-Wsign-compare] conversions Update src/ToolBox/superpmi/mcs/verbdumptoc.cpp Co-Authored-By: franksinankaya <41809318+franksinankaya@users.noreply.github.com>
2019-03-03Cleanup more GCC warnings (#22872)Sinan Kaya1-2/+2
* Add parenthesis src/vm/sha1.cpp: In function ‘void SHA1_block(SHA1_CTX*)’: src/vm/sha1.cpp:93:29: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses] #define ROUND3(B, C, D) ((C & (B | D) | (B & D)) + sha1_round3) ^ src/vm/sha1.cpp:139:32: note: in expansion of macro ‘ROUND3’ e += ROTATE32L(a, 5) + ROUND3(b, c, d) + msg80[i]; * Move declaration into same file as one was defined Extern the other one was static * Remove hr=hr undefined assignment * Fix mutli-line comment warning * Convert multi-character literal * Remove null check for stack local variables rc/vm/invokeutil.cpp: In static member function ‘static void InvokeUtil::SetValidField(CorElementType, TypeHandle, FieldDesc*, OBJECTREF*, OBJECTREF*, TypeHandle, CLR_BOOL*)’: src/vm/invokeutil.cpp:978:29: warning: the address of ‘Throwable’ will never be NULL [-Waddress] EX_CATCH_THROWABLE(&Throwable); ^ src/inc/ex.h:1087:21: note: in definition of macro ‘EX_CATCH_THROWABLE’ if (NULL != ppThrowable) ^
2019-02-21Remove unused perfcounter code (#22742)Sung Yoon Whang1-4/+0
* removing references to COUNTER_ONLY, ENABLE_PERF_COUNTERS in src/vm directory * removing perfcounters* files * Fix build * Remove PerfCounterSupportedBuild * Some more cleanup on the GC side
2019-02-07Fix race condition in g_pfnGetSystemTimeAsFileTime initialization (#22466)Jan Kotas1-4/+9
Multiple threads initializing g_pfnGetSystemTimeAsFileTime at the same time can end up with different conclusions. Make the result consistent.
2019-01-23Remove all traces of FEATURE_STACK_PROBE. (#22149)Filip Navara3-10/+0
2019-01-20Cleanup array related FCalls (#22097)Jan Kotas2-5/+14
* Cleanup Array FCalls * Disable outdated CoreFX tests https://github.com/dotnet/corefx/pull/34700
2019-01-03Adds portable version of EncodingTable (#21735)Marek Safar7-297/+0
* Adds portable version of EncodingTable Most of the implementation is extracted from CoreRT * Use string comparer directly * Remove no longer used COMNlsInfo * Adds localization support * Removes FeatureCoreFxGlobalization configuration * Remove redudant encodings look up from GetEncoding * Keep Hashtable for nameToCodePage as it does not lock on read * Replace locked dictionary lookup with short switch * Include comment with msbuild task link used to generate the data file
2018-12-08Leap Seconds Support (#21420)Tarek Mahmoud Sayed2-27/+117
* Leap Seconds Support * Address Feedback * More feedback addressing
2018-11-22Delete System.AppDomainSetup (#21157)Jan Kotas2-83/+6
* Delete System.AppDomainSetup Contributes to #21028 * Add test hook for null entry assembly * Validate that the binder paths are absolute
2018-11-12Some cleanup of the Math functions from #20788 (#20912)Tanner Gooding4-4/+4
* Fixing Max, MaxMagnitude, Min, and MinMagnitude for Math/MathF to be IEEE compliant * Disabling the System.Math.Max/Min tests * Adding the new c_runtime PAL tests to the CMakeLists to ensure they actually get run. * Fixing the casing of IlogB to ILogB * Fixing the new PAL tests to match the correct/expected outputs * Fixing up PAL_ilogb to correctly handle 0 and NaN
2018-11-05Adding some new functions to System.Math and System.MathF (#20788)Tanner Gooding4-0/+80
* Adding BitIncrement, BitDecrement, CopySign, MaxMagnitude, and MinMagnitude to Math and MathF * Adding FusedMultiplyAdd, IlogB, Log2, and ScaleB to Math and MathF * Adding some basic PAL tests for fma, ilogb, log2, and scalbn * Fixing a couple typos and adding clarifying comments * Fixing the MSVC _VVV FCALL declarations
2018-10-04Remove AppDomain unload (#20250)Jan Vorlicek1-1/+1
* Remove AppDomain unload This change removes all code in AppDomain that's related to AppDomain unloading which is obsolete in CoreCLR. It also removes all calls to the removed methods. In few places, I have made the change simpler by taking into account the fact that there is always just one AppDomain.
2018-09-28Enable BSTR Marshaling Support for x-plat PInvoke (#19766)Luqun Lou2-6/+0
2018-09-22Porting NumberToDouble to managed code. (#20080)Tanner Gooding3-489/+0
* Porting NumberToDouble to managed code. * Deleting bcltype/number.cpp and bcltype/number.h * Fixing NumberToDouble to call Int64BitsToDouble, rather than DoubleToInt64Bits * Some minor code cleanup in NumberToDouble for better readability. * Some additional code cleanup in the Number.NumberToDouble.cs code
2018-09-20Fixing some naming conventions and removing dead code.Tanner Gooding1-3/+0
2018-09-20Removing bcltype/fp.h from native code.Tanner Gooding2-68/+0
2018-09-20Removing the Grisu3 native implementation.Tanner Gooding6-718/+0
2018-09-20Removing the Dragon4 and DoubleToNumber native implementation.Tanner Gooding5-1059/+0
2018-09-06Removing i386/fptext.asm in favor of using the shared implementation in ↵Tanner Gooding1-9/+0
number.cpp
2018-09-06Updating Number.Formatting to properly print -0Tanner Gooding4-9/+22
2018-08-29Update floatdouble and floatsingle to use `floatcontrol(precise, value ↵Tanner Gooding2-8/+16
push)` and `floatcontrol(precise, pop)`
2018-08-29Updating floatdouble and floatsingle to work around an incorrect result ↵Tanner Gooding2-0/+27
under /fp:fast
2018-07-17Clean-up number.cpp (#18964)Pent Ploompuu2-1231/+0
2018-07-17Move Decimal to shared (#18948)Pent Ploompuu7-2678/+3
* Move Decimal to shared * Remove DecimalCanonicalize{Internal}
2018-06-09Avoid NativeOverlapped pinning by allocating unmanaged memory for it (#18360)Jan Kotas3-72/+0
It makes PinnableBufferCache unnecessary
2018-06-07Fixed and optimized Decimal.GetHashCode (#18288)Pent Ploompuu2-28/+0
2018-06-04Fix error during compilation with /permissive- (#18272)Andrey Kurdyumov1-2/+2
2018-06-03Warnings cleanup (#18260)Robin Sue1-4/+0
* Cleanup all disabled warnings that do not trigger * Fix warning about line continuation in single line comment * Eliminiate all unreferenced local variables and reenable warning
2018-05-24Optimize Array.Clear using SpanHelpers (#18101)Jan Kotas2-33/+11
Reimplement most of Array.Clear in managed code using Span Clear helpers. Fixes dotnet/corefx#29848
2018-04-17Convert native StringBuilder methods to managed (#17472)mikedn4-88/+0
2018-04-04[x86/Linux] Fix COMNumber::DoubleToNumberFC arguments order (#17412)Konstantin Baladurin2-2/+2
We should use FCDECL3_VII/FCIMPL3_VII instead of FCDECL3/FCIMPL3 otherwise we got incorrect order of arguments that leads to crashes.
2018-03-27Failfast windows event log (#16875)Sung Yoon Whang1-1/+1
* Add FailFast error log to Windows Event Log * change const wchar * to lpcwstr * Enable sending unhandled exception info to Windows Event Log * Change log format to match console output and address PR comments * Remove more comments * Change the order DoReportForUnhandledException to do a safety check first before calling managed code * Fix parameter name in header file * Add Windows Event logging in DefaultCatchHandler and remove DoReportForUnhandledException * Add back event reporting for ignored unhandled exception cases, fix broken UNIX builds * Fix more broken unix builds * Fix typo * Address PR comments
2018-03-27Vectorized SequenceCompareTo for Span<char> (#17237)Jan Kotas1-38/+0
- This change makes the compare for very short Span strings a bit slower and for longer Span strings many times faster. - Switch several places where it was a clear benefit to use it. `String.CompareOrdinal(string,string)` is notable exception that I have left intact for now. It is fine tuned for current string layout, and replacing with a call of vectorized SequenceCompareTo gives mixed results.