Age | Commit message (Collapse) | Author |
|
- Fix initialization of stress log, cleaned up the overall initialization sequence
- Remove spurious NO_STRESSLOG definion that disabled some of the stresslogging
|
|
Call PInvokeMarshal.SaveLastWin32Error after the P/Invoke call to ensure
the last error is saved in thread local variable which can be later
accessed through PInvokeMarshal.GetLastWin32Error.
Additionally, I have rename ParameterAttributes to
ParameterMetadataAttributes to avoid the confusion with
System.Reflection.ParameterAttributes.
This change also makes sure PInvoke works on Unix and also get rids of
build warning on windows.
|
|
- Call RhpShutdown before returning from C++ main method. This will tell the runtime skip thread cleanup that otherwise leads to intermittent deadlock in half-torn down process state.
- Apply the same fix to Environment.Exit.
- Switch CppCodeGen to the fixed bootstrap main method so that it can naturally get this fix as well.
Fixes #2222.
|
|
This checkin is an adaptation of a cache used in the type loader. It is applied to our type casting APIs and brings a significant performance improvement to any type-cast-heavy workload.
The cache has an initial tuning that looks reasonable, but should still be considered provisional as we gather more data on its behavior across various workloads.
[tfs-changeset: 1600411]
|
|
This change replaces usages of the uint thread id by EEThreadId at
places where we use it for thread matching. It also adds new
PAL function GetPalThreadIdForLogging that returns a numeric thread
id for logging purposes if the target platform supports it.
The reason for this change is that in pthreads, thread id is an
opaque struct and numeric id existence is platform specific.
|
|
Conflicts:
src/Native/Runtime/PalRedhawkFunctions.h
src/Native/Runtime/RhConfig.cpp
src/Native/Runtime/RhConfig.h
src/Native/Runtime/gcrhenv.cpp
src/Native/gc/env/gcenv.base.h
|
|
Bug: https://devdiv.visualstudio.com/web/wi.aspx?pcguid=011b8bdf-6d56-4f87-be0d-0092136884d9&id=195206
[tfs-changeset: 1578980]
|
|
This change abstracts the FLS usage for thread shutdown notification in PAL into a
general thread shutdown callback registration mechanism. It also implements its
Unix version.
|
|
Conflicts:
src/Common/src/Interop/Windows/mincore/Interop.MEMORY_BASIC_INFORMATION.cs
src/ILCompiler.Compiler/src/Compiler/PdbSymbolProvider.cs
src/Native/Bootstrap/platform.h
src/Native/Bootstrap/platform.windows.cpp
src/Native/gc/env/gcenv.windows.cpp
src/System.Private.CoreLib/src/Internal/Runtime/CompilerHelpers/ArrayMethodILHelpers.cs
tests/src/Simple/AsgAdd1/AsgAdd1.cs
|
|
|
|
This change implements GetEnvironmentVariableA, PalReadFileContents and changes
PalGetCurrentProcessorNumber to work on all platforms that have sched_getcpu
instead of just Linux (it is done the same way in CoreCLR).
I've also removed one unused function and one prototype.
|
|
It is modeled after TCHAR used for similar purpose in Windows SDK. It allows us to eliminate need for Unicode conversions in the Unix runtime.
|
|
Conflicts:
src/Native/Runtime/unix/PalRedhawkUnix.cpp
src/Native/gc/gc.cpp
|
|
- delete duplicate files
- fixup project files
- fixup minor errors when using sources from open tree
[tfs-changeset: 1564216]
|
|
Port changes from CoreCLR
Update Runtime as needed
Remove functions that are not needed anymore for Unix
|
|
|
|
This change enables compilation of the runtime excluding the PAL
layer on Linux.
Most of the changes are just to make it build with clang that's
more strict w.r.t. the C++11 standard.
In addition to that, I have removed our implementation of the
new / delete operators and replaced all calls to new in the
runtime by new (nothrow).
|
|
Provide specialized gcenv.h for CoreRT.
Some refactoring of related gcenv stuff.
Wire up finalizer code.
Add runtime-specific scanning code.
|
|
yet hooked up.
|