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

Use throwhelper to increase change of inlining #695

Merged
merged 1 commit into from
Jul 17, 2019

Conversation

damageboy
Copy link
Contributor

  • Add a ThrowHelper utility class that provides non-returning methods
    for throwing exceptions, this in turn helps to reduce the code size,
    there-by increasing the chances of inlining simple (getter/setter)
    methods, which has cascading CQ improvments in its own.
    (See: Do not inline methods that never return dotnet/coreclr#6103)
  • Convert checks in the form of (x < 0 || x > max) to (uint) x > max
    to further reduce code-size and increase inlining chances
  • Update MSTest package deps
  • Drop netfx.props (which I introduces in a previous PR to support
    building on linux) and replace with the now standard/canonical way of
    referencing NetFX BCL on all platforms with a
  • closes [C#] Use throw helpers for generated code #588

- Add a ThrowHelper utility class that provides non-returning methods
  for throwing exceptions, this in turn helps to reduce the code size,
  there-by increasing the chances of inlining simple (getter/setter)
  methods, which has cascading CQ improvments in its own.
  (See: dotnet/coreclr#6103)
- Convert checks in the form of `(x < 0 || x > max)` to `(uint) x > max`
  to further reduce code-size and increase inlining chances
- Update MSTest package deps
- Drop netfx.props (which I introduces in a previous PR to support
  building on linux) and replace with the now standard/canonical way of
  referencing NetFX BCL on all platforms with a <PackageReference>
- closes aeron-io#588
@JPWatson JPWatson self-requested a review July 17, 2019 15:36
@JPWatson JPWatson merged commit ce5802e into aeron-io:master Jul 17, 2019
@damageboy damageboy deleted the wip/throwhelper branch July 17, 2019 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[C#] Use throw helpers for generated code
2 participants