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

Add mono_gc_start_incremental_collection API #1297

Merged
merged 3 commits into from
May 27, 2020
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 external/bdwgc
7 changes: 7 additions & 0 deletions mono/metadata/boehm-gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,13 @@ mono_gc_collect_a_little()
return GC_collect_a_little();
}

void mono_gc_start_incremental_collection()
{
#if HAVE_BDWGC_GC
GC_start_incremental_collection();
#endif
}

/**
* mono_gc_max_generation:
*
Expand Down
1 change: 1 addition & 0 deletions mono/metadata/mono-gc.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ MONO_API MonoBoolean mono_gc_is_incremental (void);
MONO_API void mono_gc_set_incremental(MonoBoolean value);
MONO_API void mono_gc_finalize_notify (void);
MONO_API int mono_gc_invoke_finalizers (void);
MONO_API void mono_gc_start_incremental_collection();
/* heap walking is only valid in the pre-stop-world event callback */
MONO_API int mono_gc_walk_heap (int flags, MonoGCReferences callback, void *data);

Expand Down
5 changes: 5 additions & 0 deletions mono/metadata/null-gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ mono_gc_collect (int generation)
{
}

void
mono_gc_start_incremental_collection()
{
}

int
mono_gc_max_generation (void)
{
Expand Down
6 changes: 6 additions & 0 deletions mono/metadata/sgen-mono.c
Original file line number Diff line number Diff line change
Expand Up @@ -2819,6 +2819,12 @@ mono_gc_collect (int generation)
sgen_gc_collect (generation);
}

void
mono_gc_start_incremental_collection()
{

}

int
mono_gc_collection_count (int generation)
{
Expand Down