Do not crash if path is specified
[Fix] Bugzilla #18235 - System.Runtime.Caching.MemoryCache doesn't order...
AssemblyBuilder is not a good class for doing that but simply taking only the file name covers most cases. The best solution is to rewrite this tool using Mono.Cecil. FYI AL.exe from .NET is not written in managed because of the SRE limitation
…der expirable items correctly - BubbleUp() in MemoryCacheEntryPriorityQueue was not ordering correctly on item insert - Added a test case
Correct spelling DEFAULT_ACCESS_MODIFER -> DEFAULT_ACCESS_MODIFIER
…est.CreateHttp; Fixes #18378
Replace GC_free with GC_INTERNAL_FREE. The former might take the GC lock and deadlock us. Replace GC_INTERNAL_MALLOC with GC_INTERNAL_MALLOC_IGNORE_OFF_PAGE as we don't need the rest of the GC messing around with the toggleref array.
…ull. This breaks all embedder that don't link with CoreFoundation. In mono's case, monodis.
The right behavior is that the loop move values up to the original size and them the store after the loop store past it. Let's see the last 2 iterations: //i == size - 1 (value = array[size - 2], tmp = array [size - 1]) dyn_array_int_set (array, size, value); //ok value = tmp; //ok tmp = dyn_array_int_get (array, i + 1); //tmp has an unknown value, as the last element was never stored to. //i == size (value = array[size - 1], tmp = array [size]) dyn_array_int_set (array, size, value); //This sets the last element to the right value value = tmp; //value is undefined, as tmp has tmp = dyn_array_int_get (array, i + 1); //this is an out-of-bounds read as we're reading 2 elements past the end. The after the loop store (tmp = array [size + 1]): dyn_array_int_set (array, size + 1, tmp); //This sets the last element to an unknown value. With the fix on the last iteration is - 1. The post store will use value, which has the right value (array [size - 1]).
… llvm versions.
… at -O3 shut up.
… results in a clean repo.
We rely on signed overflow in many places (in particular for *detecting* signed overflow), so we need to tell GCC and Clang to not perform any optimizations that rely on it being undefined.
…aner and safer. This paves the way for having different number of objects inline.
…instead. This reduces the size of DynArray from 4 to 3 words. Small perf gain.
…ter on sgen-bridge. The macro produces a custom version of qsort that doesn't use memcpy or a function pointer.
…ts.System.Reflection.Emit.MethodBuilderTest.CanCallVarargMethods in corlib.