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

BoehmGC initial support #232

Merged
merged 9 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion runtime/common/reflection/VeinClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected VeinClass() { }


protected virtual VeinMethod GetOrCreateTor(string name, bool isStatic = false)
=> Methods.FirstOrDefault(x => x.IsStatic == isStatic && x.RawName.Equals(name));
=> Methods.FirstOrDefault(x => x.IsStatic == isStatic && x.RawName.Equals(name) && (x.IsDeconstructor || x.IsConstructor));

public override string ToString()
=> $"{FullName}, {Flags}";
Expand Down
1 change: 1 addition & 0 deletions runtime/common/reflection/VeinModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public class MutexStorage
public object INIT_TYPE_BARRIER = new ();
public object INIT_FIELD_BARRIER = new ();
public object INIT_METHOD_BARRIER = new ();
public object GC_FINALIZER_BARRIER = new ();
}
}
}
2 changes: 1 addition & 1 deletion runtime/ishtar.vm/ishtar.vm.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<Optimize>false</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DefineConstants>$(DefineConstants);EXPERIMENTAL_JIT</DefineConstants>
<DefineConstants>$(DefineConstants);EXPERIMENTAL_JIT;BOEHM_GC</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Iced" Version="1.20.0" />
Expand Down
Loading
Loading