Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Initial hookup of GC code to MRT code #35

Merged
merged 2 commits into from
Oct 14, 2015
Merged

Initial hookup of GC code to MRT code #35

merged 2 commits into from
Oct 14, 2015

Conversation

smosier
Copy link
Contributor

@smosier smosier commented Oct 7, 2015

Checkpoint of GC-to-MRT hookup. These changes allow us to build a .lib on windows using an on-the-side VS project. There are still issues with the two separate definitions of various things like Thread, ThreadStore, and a few others, so the .lib isn't usable just yet.

@smosier
Copy link
Contributor Author

smosier commented Oct 7, 2015

@janvorli , @jkotas , please take a look.

@jkotas
Copy link
Member

jkotas commented Oct 7, 2015

Could you please rebase away the "Merge branch 'master' into integrate-gc " commits?

@smosier
Copy link
Contributor Author

smosier commented Oct 7, 2015

Done

// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//

//-------------------------------------------------------------------------------------------------
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should live in gc\env or gc\sample because of the definitions in this file are runtime specific. It would break ability to share the exact same GC sources with CLR/CoreCLR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that the right setup should be:

  • Move gc\env\gcenv.h -> gc\sample\gcenv.h
  • Create a new own copy of gcenv.h for CoreRT runtime that can be modified at will
  • Factor useful definitions from gc\sample\gcenv.h into smaller files under gc\env* that the runtime-specific environments may choose to use. E.g. this one can be gcenv.object.h.

@jkotas
Copy link
Member

jkotas commented Oct 8, 2015

LGTM otherwise

@jkotas
Copy link
Member

jkotas commented Oct 14, 2015

LGTM

Provide specialized gcenv.h for CoreRT.
Some refactoring of related gcenv stuff.
Wire up finalizer code.
Add runtime-specific scanning code.
smosier added a commit that referenced this pull request Oct 14, 2015
Initial hookup of GC code to MRT code
@smosier smosier merged commit 92dad29 into dotnet:master Oct 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants