Commit Graph
654 Commits
Author SHA1 Message Date
Jarret Shook db90872e5c Enable arm64 linux musl builds (dotnet/coreclr#22495)
* Enable arm64 linux musl builds

Note that -clang5.0 is required to be passed.

* Fix syntax error

* Pass clang arg to build-test.sh


Commit migrated from https://github.com/dotnet/coreclr/commit/de2fe10e6f53dd4f05f04e9ddad0ccd7619829a0
2019-02-12 14:38:27 -08:00
Tanner Gooding f28a4f08ed Support building with VS2019 Preview (dotnet/coreclr#22525)
* Support building with VS2019 Preview

* Fixing gen-buildsys-win to only set the architecture for the VS generator

* Refactoring Dev11/147911/fpcw.cpp so that it compiles under VS2019

* Removing the remaining traces of VS2015 build support


Commit migrated from https://github.com/dotnet/coreclr/commit/f0770609f8cdbeba019b35af48b70840f33bd479
2019-02-11 23:19:44 -08:00
Michal Strehovský eafd9ad584 Add draft default interface methods specification (dotnet/coreclr#21564)
Commit migrated from https://github.com/dotnet/coreclr/commit/c4299d42ff04d67aa11c607f48bc4d70f3f9723b
2019-02-05 09:03:49 +01:00
Jan Vorlicek 5331a6d556 Add design document for unloadability (dotnet/coreclr#22166)
* Add design document for the unloadability



Commit migrated from https://github.com/dotnet/coreclr/commit/d13966d3aa4db263e21794127eb934982020e745
2019-01-31 20:17:11 +01:00
Meir Blachman 383bf35000 fixed pdf link in dotnet-standards.md (dotnet/coreclr#22292)
Commit migrated from https://github.com/dotnet/coreclr/commit/b2e3a19be00af54c3bc4c76d94044aca9c32a45d
2019-01-30 10:44:57 -05:00
Filip Navara 9b01eaa0e3 Remove all traces of FEATURE_STACK_PROBE. (dotnet/coreclr#22149)
Commit migrated from https://github.com/dotnet/coreclr/commit/a28b25aacdcd2adb0fdfa70bd869f53ba6565976
2019-01-23 13:13:01 -08:00
Jarret Shook 3e9d934be0 Update linux/OSX build instructions (dotnet/coreclr#21679)
* Update linux/OSX build instructions

* Update based on feedback

* Address PR feedback

* Update to address feedback


Commit migrated from https://github.com/dotnet/coreclr/commit/e466b70bfb6c6763bef1300706122f10519882bf
2019-01-16 09:57:19 -08:00
Koundinya Veluri cdb19743f9 Patch vtable slots and similar when tiering is enabled (dotnet/coreclr#21292)
Patch vtable slots and similar when tiering is enabled

For a method eligible for code versioning and vtable slot backpatch:
  - It does not have a precode (`HasPrecode()` returns false)
  - It does not have a stable entry point (`HasStableEntryPoint()` returns false)
  - A call to the method may be:
    - An indirect call through the `MethodTable`'s backpatchable vtable slot
    - A direct call to a backpatchable `FuncPtrStub`, perhaps through a `JumpStub`
    - For interface methods, an indirect call through the virtual stub dispatch (VSD) indirection cell to a backpatchable `DispatchStub` or a `ResolveStub` that refers to a backpatchable `ResolveCacheEntry`
  - The purpose is that typical calls to the method have no additional overhead when code versioning is enabled

Recording and backpatching slots:
  - In order for all vtable slots for the method to be backpatchable:
    - A vtable slot initially points to the `MethodDesc`'s temporary entry point, even when the method is inherited by a derived type (the slot's value is not copied from the parent)
    - The temporary entry point always points to the prestub and is never backpatched, in order to be able to discover new vtable slots through which the method may be called
    - The prestub, as part of `DoBackpatch()`, records any slots that are transitioned from the temporary entry point to the method's at-the-time current, non-prestub entry point
    - Any further changes to the method's entry point cause recorded slots to be backpatched in `BackpatchEntryPointSlots()`
  - In order for the `FuncPtrStub` to be backpatchable:
    - After the `FuncPtrStub` is created and exposed, it is patched to point to the method's at-the-time current entry point if necessary
    - Any further changes to the method's entry point cause the `FuncPtrStub` to be backpatched in `BackpatchEntryPointSlots()`
  - In order for VSD entities to be backpatchable:
    - A `DispatchStub`'s entry point target is aligned and recorded for backpatching in `BackpatchEntryPointSlots()`
      - The `DispatchStub` was modified on x86 and x64 such that the entry point target is aligned to a pointer to make it backpatchable
    - A `ResolveCacheEntry`'s entry point target is recorded for backpatching in `BackpatchEntryPointSlots()`

Slot lifetime and management of recorded slots:
  - A slot is recorded in the `LoaderAllocator` in which the slot is allocated, see `RecordAndBackpatchEntryPointSlot()`
  - An inherited slot that has a shorter lifetime than the `MethodDesc`, when recorded, needs to be accessible by the `MethodDesc` for backpatching, so the dependent `LoaderAllocator` with the slot to backpatch is also recorded in the `MethodDesc`'s `LoaderAllocator`, see `MethodDescBackpatchInfo::AddDependentLoaderAllocator_Locked()`
  - At the end of a `LoaderAllocator`'s lifetime, the `LoaderAllocator` is unregistered from dependency `LoaderAllocators`, see `MethodDescBackpatchInfoTracker::ClearDependencyMethodDescEntryPointSlots()`
  - When a `MethodDesc`'s entry point changes, backpatching also includes iterating over recorded dependent `LoaderAllocators` to backpatch the relevant slots recorded there, see `BackpatchEntryPointSlots()`

Synchronization between entry point changes and backpatching slots
  - A global lock is used to ensure that all recorded backpatchable slots corresponding to a `MethodDesc` point to the same entry point, see `DoBackpatch()` and `BackpatchEntryPointSlots()` for examples

Due to startup time perf issues:
  - `IsEligibleForTieredCompilation()` is called more frequently with this change and in hotter paths. I chose to use a `MethodDesc` flag to store that information for fast retreival. The flag is initialized by `DetermineAndSetIsEligibleForTieredCompilation()`.
  - Initially, I experimented with allowing a method versionable with vtable slot backpatch to have a precode, and allocated a new precode that would also be the stable entry point when a direct call is necessary. That also allows recording a new slot to be optional - in the event of an OOM, the slot may just point to the stable entry point. There are a large number of such methods and the allocations were slowing down startup perf. So, I had to eliminate precodes for methods versionable with vtable slot backpatch and that in turn means that recording slots is necessary for versionability.

Commit migrated from https://github.com/dotnet/coreclr/commit/37b9d85941c39cfdce2a2ea877388ab1ab630c68
2019-01-11 18:02:10 -08:00
Bruce Forstall 28428d1f3a Merge pull request dotnet/coreclr#20409 from lol768/patch-1
Add a note to clarify debugging w/ dotnet is fine

Commit migrated from https://github.com/dotnet/coreclr/commit/d73e20f6cb12d7cf4c9909ff70a8920c978a1ce3
2019-01-08 14:02:15 -08:00
Günther Foidl c003b8b17d Updated "Viewing JIT Dumps" for .NET Core 3.0 (dotnet/coreclr#21687)
* Updated "Viewing JIT Dumps" for .NET Core 3.0

plus some minor wording change

* Incorporated changes from https://github.com/dotnet/coreclr/pull/21859


Commit migrated from https://github.com/dotnet/coreclr/commit/2d2caa80996562936b146fbf81ab228a21b1f7b7
2019-01-08 13:15:48 -08:00
Marlon Regenhardt 499f016c66 Remove second 'license' word for readability (dotnet/coreclr#21747)
The license name already has 'license' in the end, the second one is unnecessary.

Commit migrated from https://github.com/dotnet/coreclr/commit/d26e31a51d3a97ac925240c134d08418911c457d
2019-01-02 04:02:20 -10:00
Koundinya Veluri 9ae505158f Update tiering guide to reference the new TieredCompilation label (dotnet/coreclr#21618)
Commit migrated from https://github.com/dotnet/coreclr/commit/a8ed07a5ee70f0864290f3e9870d53665c2aef4a
2018-12-21 11:59:05 -08:00
Andy Ayers bbc56ce31e Guarded devirtualization foundations (dotnet/coreclr#21270)
Lay the groundwork for guarded devirtualization of virtual and interface
calls in the jit.

Introduce the notion of a guarded devirtualization candidate and identify
these if regular devirtualization fails. Use simple heuristics to produce
a class to guess for. Require that the method that would be invoked if the class
guess is correct be a plausible inline candidate.

Generalize the calli transformer to become an indirect call transformer.
This runs after importation because it needs to introduce control flow and
runs before inlining so that the new direct calls it introduces can be inlined.

Implement the transformation to duplicate the call site, devirtualize on the side
where the class is now known exactly, and turn the resulting direct call into an
inline candidate.

Add a motivation and design document.

Commit migrated from https://github.com/dotnet/coreclr/commit/045f470f71cfcedf3eb7ff248f25bf29619d9a88
2018-12-06 09:03:31 -08:00
Egor Chesakov 465fd1d2ab Remove Hostx86/arm CrossGen from building and Simplify build.sh command line arguments for Linux/arm cross build (Part 2) (dotnet/coreclr#21034)
* Stop building and publishing Hostx86/arm crossgen on Linux/arm

* Remove -crosscomponent argument and stop using CAC_ROOTFS_DIR environment variable in build.sh

* Simplify the related logic in build.sh

* Don't need to specify crosscomponent in tests/scripts/run-pmi-diffs.py

* Don't set CAC_ROOTFS_DIR in buildpipeline, Jenkins files and in tests/scripts/run-pmi-diffs.py

* Adjust documentation



Commit migrated from https://github.com/dotnet/coreclr/commit/20c6bc555319aa635e0e490c82aebf0bb370d6c1
2018-12-03 14:51:28 -08:00
Rui e84656d79b Clarify use of LoadFromAssemblyName method (dotnet/coreclr#21256)
Commit migrated from https://github.com/dotnet/coreclr/commit/f8b4745ae754774ebf2a802ef1fd1f2bf6dbd024
2018-12-03 12:33:51 -08:00
Maoni Stephens f12f3501bc added info about the new .NET memory book (dotnet/coreclr#21326)
Commit migrated from https://github.com/dotnet/coreclr/commit/1d5ba868d0cbeaab5ff3ec795d0562a39d0f7655
2018-12-01 12:38:36 -08:00
Dan Moseley e6e8071548 Update changing-corelib.md (dotnet/coreclr#21220)
* Update changing-corelib.md 

@jkotas

* Update changing-corelib.md


Commit migrated from https://github.com/dotnet/coreclr/commit/c98155df54da9247e598068cc956dfe9aede610e
2018-11-27 13:24:57 -08:00
Jan Kotas 561cf451af Update documentation for changing CoreLib (dotnet/coreclr#21201)
Commit migrated from https://github.com/dotnet/coreclr/commit/355e1895793ced0583b1b688c5b0491074bfeafe
2018-11-26 17:06:35 -08:00
Ayende Rahien 5fc303612a Fixing typo (dotnet/coreclr#21081)
Commit migrated from https://github.com/dotnet/coreclr/commit/84a62b1925adee9b8979b36f52834d0cca5d0469
2018-11-24 07:18:36 -08:00
Bruce Forstall 9774da23b0 Update CoreFX-in-CoreCLR testing instructions (dotnet/coreclr#21002)
Update to reflect changes in the repo, and fix various formatting issues.


Commit migrated from https://github.com/dotnet/coreclr/commit/801d2f49f7f56e42db17b775db429ae490e719c7
2018-11-14 13:52:34 -08:00
Egor Chesakov 0e0600b66b Simplify build.sh command line arguments for Linux/arm cross build (Part 1) (dotnet/coreclr#20836)
* Don't use crosscomponent|-crosscomponent command line args in build.sh
* Don't use CROSSCOMPONENT environment variable in build.sh src/pal/tools/gen-buildsys-clang.sh
* Remove mentioning -crosscomponent from usage() in build-test.sh
* Don't use -crosscomponent in buildpipeline
* Don't use -crosscomponent in Groovy files
* Remove mentioning crosscomponent in Documentation/building/linux-instructions.md
* Stop building Hostx86/armel crossgen in build.sh
* Disable CrossGen-ing of System.Private.CoreLib on Linux/armel


Commit migrated from https://github.com/dotnet/coreclr/commit/e4bfbba75f40c3203267a235be5266d22adea6a3
2018-11-12 17:21:06 -08:00
Shreyas Jejurkar cb69457b92 Corrected Typos and grammar (dotnet/coreclr#20658)
* Corrected some typos and grammar as per English language guidelines.

* Reverted some of the changes

* Reverted back some changes Phase 2


Commit migrated from https://github.com/dotnet/coreclr/commit/9d92078b022a8113cd9db78076ce69260f1754dc
2018-10-30 11:05:58 -04:00
Jesús Corrius 30ff2de1cf Fix typo in linux-performance-tracing (dotnet/coreclr#20667)
precomppiled -> precompiled

Commit migrated from https://github.com/dotnet/coreclr/commit/b1c22db881b1936ed37a798804c81ce7abc23b8e
2018-10-29 12:45:43 -04:00
Antoine Blanchet 1e8e65a0b6 Replace 'VSCode' by 'Visual Studio Code' in doc (dotnet/coreclr#20441)
Visual Studio Code is also broadly known as VSCode. But since this document already contained a typo
and Visual Studio Code is not referred as VSCode elsewhere in the CoreCLR documentation I figured it could
be nice to _clean_ this documentation page.

Commit migrated from https://github.com/dotnet/coreclr/commit/b52ab56aa5035c389c1bf1816d4855212fffed3f
2018-10-17 10:24:55 -07:00
Adam Williams 3a562db1dc Add a note to clarify debugging w/ dotnet is fine
ref https://github.com/dotnet/coreclr/issues/12705#issuecomment-314102508


Commit migrated from https://github.com/dotnet/coreclr/commit/ea17bb9a63a12ddf6a228bc152580c7cbe31ebe4
2018-10-14 13:01:58 +01:00
Vance Morrison 624424a59e fix hyperlink
Commit migrated from https://github.com/dotnet/coreclr/commit/52f56db5de361dbc22564e2c5a57fefd9599f179
2018-10-11 17:02:43 -07:00
Vance Morrison 46ab9dd410 Added docs for native DLLs
Commit migrated from https://github.com/dotnet/coreclr/commit/c2891ef02b637d2d368eab86f380180950b54fd8
2018-10-11 17:00:06 -07:00
Vance Morrison ac77886e73 Added advice about using ZapDisable to get symbols
Commit migrated from https://github.com/dotnet/coreclr/commit/6f44694e471309768bd3f66528fbf97c414e5649
2018-10-10 14:04:57 -07:00
Vance Morrison 01b6ff817d Fix typo
Commit migrated from https://github.com/dotnet/coreclr/commit/7dea3f558ee3193b8e7aeec064db79e2e8f92642
2018-10-10 13:29:39 -07:00
Vance Morrison 9099365800 Improve instructions on getting framework symbols
Commit migrated from https://github.com/dotnet/coreclr/commit/19b466821ce20977541a47a8bd255f7400539a5a
2018-10-10 13:28:28 -07:00
Eugene Rozenfeld 2f62ab2a90 Document describing upcoming object stack allocation work. (dotnet/coreclr#20251)
Commit migrated from https://github.com/dotnet/coreclr/commit/913428d5915a9729c9405f57a75e7f912f9d29a5
2018-10-08 16:25:44 -07:00
Austin Wise 4ec36f96db Remove mention of rotor from comments (dotnet/coreclr#20297)
* Remove old reference to Rotor in documentation.

All remaining references relate to rotor's role in CoreCLR history.

* Remove rotor comment from enummem.cpp.

I can find no evidence that the presence of g_pStressLog is conditional
on FEATURE_PAL being defined.

* Remove old todo, DbgDllMain looks for thread detach.

* Update nativepipeline.h comment refernce to rotor.

All unix-like systems except android have FEATURE_DBGIPC_TRANSPORT_DI
defined, hence "most unix-like platforms".

* Update some comments to not refer to Rotor.

* Remove some more references to Rotor from comments.

* Remove old comment.

Though maybe this macro should be removed and everywhere use the & operator.
It appears there are only two places that use this macro.


Commit migrated from https://github.com/dotnet/coreclr/commit/e57c4fb8ff2346d5420247183b9af2b83184516c
2018-10-07 20:16:45 -07:00
annaaniol 36a7c251c0 Update the dllmap design doc (6)
Commit migrated from https://github.com/dotnet/coreclr/commit/675ad93afd67ba03513c7c6cb17e5fbceada5be9
2018-10-05 18:43:51 -07:00
annaaniol 2d7b980dce Update the dllmap design doc (5)
Commit migrated from https://github.com/dotnet/coreclr/commit/ffd336585f67a90853f802c201e6580661f4df51
2018-10-05 18:43:51 -07:00
annaaniol 70ef0241d0 Update the dllmap design doc (4)
Commit migrated from https://github.com/dotnet/coreclr/commit/683663b8401432a938822a13de0538300aa3e158
2018-10-05 18:43:51 -07:00
annaaniol 37e7a9a810 Update the dllmap design doc (3)
Commit migrated from https://github.com/dotnet/coreclr/commit/cfd39bdb4ddfa9ced1297c21d8be68951398d1f2
2018-10-05 18:43:51 -07:00
annaaniol 1dfde6ddd8 Update the dllmap design doc (2)
Commit migrated from https://github.com/dotnet/coreclr/commit/0d65fc16b7e379488b4bf8de5051637674d92bcb
2018-10-05 18:43:51 -07:00
annaaniol 7d4e8d53fe Update the dllmap design doc
Commit migrated from https://github.com/dotnet/coreclr/commit/71a5d5b8c36995f6c35a688832f5e7a6a379bee8
2018-10-05 18:43:51 -07:00
annaaniol 68f58a8399 Add a dllmap design document
Commit migrated from https://github.com/dotnet/coreclr/commit/8aab4f28a6e4f7f566524ac556b7e32c4082e7a1
2018-10-05 18:43:51 -07:00
Paresh 954da030f3 PDF link wasn't working (dotnet/coreclr#20242)
Correct pdf link

Commit migrated from https://github.com/dotnet/coreclr/commit/50567db6e3851f4c4680771424a354e2258333b4
2018-10-03 02:49:27 -07:00
Alexander Soldatov e2274ce35f Added transcript of ARMEnabled. (dotnet/coreclr#20181)
Commit migrated from https://github.com/dotnet/coreclr/commit/c4bf09d95011c0b4f86be1001b228b337a11fdd4
2018-09-28 08:16:29 -07:00
Koundinya Veluri b3a6696a4f Add short guide for using tiered compilation and how to provide feedback (dotnet/coreclr#19773)
* Add short guide for using tiered compilation and how to provide feedback

* Suggested changes

* Update to say that it's enabled by default

* Add info about target framework/runtime


Commit migrated from https://github.com/dotnet/coreclr/commit/e5f1f3e69bfda1b41ea2ca3d1e76445afaac9f65
2018-09-14 21:00:04 -07:00
sergey ignatov fd1eadb6e3 i386: Fixed definition with declaration in eetoprofinterfaceimpl.cpp (dotnet/coreclr#18792)
Commit migrated from https://github.com/dotnet/coreclr/commit/a1757ce8e80cd089d9dc31ba2d4e3246e387a6b8
2018-09-01 07:40:44 -07:00
Mark Jung 08c5d11aea typo fix (dotnet/coreclr#19763)
Commit migrated from https://github.com/dotnet/coreclr/commit/819f19a3287ccd179cb8bcbac24d6817c1e2fb71
2018-08-30 03:00:02 -07:00
John Doe 62b89b2e78 Typos (dotnet/coreclr#19737)
* testsing -> testing

* reclaming -> reclaiming

* oppurtunity -> opportunity

* implemenation -> implementation

* indicaates -> indicates

* enregisterd -> enregistered

* compuations -> computations

* convinient -> convenient

* intution -> intuition

* Communicaton -> Communication


Commit migrated from https://github.com/dotnet/coreclr/commit/4c7c066d0bacdb86a2311333de1ca73d94ae5280
2018-08-29 14:46:52 -07:00
Jarret Shook 5a02c9ca12 Use runtest.py to run tests for all platforms (dotnet/coreclr#19213)
Change build-test.sh to always build the xunit wrappers. Before it would drop a token and check the existence of the token.

Unify x64 linux/OSX/Windows excludes into one file, issues.targets. Includes different locations in the file which show where to put excludes.

Remove all target specific aspects of issues.targets, all tests are excluded now via wildcard, this allows expanding to .cmd and .sh based on the built platform.

Unify path separators to forward slash(/) in issues.targets to support both platforms

Clean up issues.targets by removing long standing exclude tests, specifically tests that have been excluded due to missing features like rva_statics.
Add DisableProjectBuild to tests which have been removed from issues.targets

Conditionally add DisableProjectBuild to tests which have been marked as unsupported on unix. This is mostly a port of the unsupportedOnUnix.txt list. Instead of excluding the tests, unix will simply not build them. If tests are built on windows, they will be run but they will return pass, the test wrapper will check return instantly.

All exclusions ported to issues.targets for linux targets.
Expand runtest.py, this includes simple issues that made it past the original CR. In addition it adds more optional features to help with inner loop dev work such as: creating a repro folder under bin/repro/.. which sets up the env and calls the failing test. In addition a launch.json will now be created under bin/repro/.. which can be used to easily debug using vscode. More logging, such as printing failures, longest running tests ect.
Initial excludes ported for arm64 windows

Arm64 linux, armhf unix excludes and enables running runtest.sh for these targets.
arm64 windows and arm32 windows excludes and enables running runtest.cmd on arm64 targets
init-tools.sh changes to pull armhf and aarch64 dotnetcli

init-tools.cmd changes to pull x86 packages for dotnetcli for arm64 windows
runtest.cmd for almost all scenarios will call runtest.py
runtest.sh for almsot all scenarios will call runtest.py
Removes all logic for running tests using runtest.sh

Commit migrated from https://github.com/dotnet/coreclr/commit/b34f2bfee8ca2c5f5508f4d58f5b79dc616dcccc
2018-08-24 21:19:58 -07:00
Jan Kotas 1c9e2e8548 Update version in documentation samples to 3.0
Commit migrated from https://github.com/dotnet/coreclr/commit/e8b51f16267715db62f8f17a2e159dcba07149aa
2018-08-24 15:19:44 -07:00
Drew Noakes e626acff11 Fix broken documentation links into mscorlib code (dotnet/coreclr#19598)
Commit migrated from https://github.com/dotnet/coreclr/commit/fea6dcacb820057eb24a25b97c337b5dcf881301
2018-08-22 05:54:20 -07:00
Koundinya Veluri 87449101b2 Enable Tiered Compilation by default (dotnet/coreclr#19525)
Enable Tiered Compilation by default

1) Changes the default state of the tiered compilation feature check to be ON BY DEFAULT
2) Removed comments about the source about this being a work in progress. Although it will surely continue to evolve and improve, remaining issues would be better tracked in our issue tracking system with the same default presumption as other runtime features - assume it works unless noted otherwise.
3) Adjusts a number of tests and automated scripts that made assumptions that the default setting of this feature is off.
4) Stop accepting the deprecated env var COMPLUS_EXPERIMENTAL_TieredCompilation. I'm not aware it has any remaining usage but if so we're going to find out.
5) Adjust config names for JitBench

Commit migrated from https://github.com/dotnet/coreclr/commit/f6174b93d100d46f4641f040b6de5fa254c1ee71
2018-08-17 08:31:44 -07:00
Mike McLaughlin a1345894c0 Update debugging and createdump docs. (dotnet/coreclr#19495)
Commit migrated from https://github.com/dotnet/coreclr/commit/21f94f2be12e16bb36187d40c2fa82af9ebfd469
2018-08-14 18:22:23 -07:00