Skip to content

Commit

Permalink
Remove RGENGC_FORCE_MAJOR_GC flag
Browse files Browse the repository at this point in the history
[Bug #20762]
  • Loading branch information
eightbitraptor committed Nov 5, 2024
1 parent 74fcf43 commit 01e509c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion .github/workflows/compilers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ jobs:
- { uses: './.github/actions/compilers', name: 'GC_PROFILE_MORE_DETAIL', with: { cppflags: '-DGC_PROFILE_MORE_DETAIL' } }
- { uses: './.github/actions/compilers', name: 'MALLOC_ALLOCATED_SIZE_CHECK', with: { cppflags: '-DMALLOC_ALLOCATED_SIZE_CHECK' } }
- { uses: './.github/actions/compilers', name: 'RGENGC_ESTIMATE_OLDMALLOC', with: { cppflags: '-DRGENGC_ESTIMATE_OLDMALLOC' } }
# - { uses: './.github/actions/compilers', name: 'RGENGC_FORCE_MAJOR_GC', with: { cppflags: '-DRGENGC_FORCE_MAJOR_GC' } }
- { uses: './.github/actions/compilers', name: 'RGENGC_OBJ_INFO', with: { cppflags: '-DRGENGC_OBJ_INFO' } }
- { uses: './.github/actions/compilers', name: 'RGENGC_PROFILE', with: { cppflags: '-DRGENGC_PROFILE' } }

Expand Down
14 changes: 0 additions & 14 deletions gc/default.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,6 @@ int ruby_rgengc_debug;
# define RGENGC_ESTIMATE_OLDMALLOC 1
#endif

/* RGENGC_FORCE_MAJOR_GC
* Force major/full GC if this macro is not 0.
*/
#ifndef RGENGC_FORCE_MAJOR_GC
# define RGENGC_FORCE_MAJOR_GC 0
#endif

#ifndef GC_PROFILE_MORE_DETAIL
# define GC_PROFILE_MORE_DETAIL 0
#endif
Expand Down Expand Up @@ -5479,9 +5472,6 @@ gc_marks_finish(rb_objspace_t *objspace)
if (objspace->rgengc.old_objects > objspace->rgengc.old_objects_limit) {
gc_needs_major_flags |= GPR_FLAG_MAJOR_BY_OLDGEN;
}
if (RGENGC_FORCE_MAJOR_GC) {
gc_needs_major_flags = GPR_FLAG_MAJOR_BY_FORCE;
}

gc_report(1, objspace, "gc_marks_finish (marks %"PRIdSIZE" objects, "
"old %"PRIdSIZE" objects, total %"PRIdSIZE" slots, "
Expand Down Expand Up @@ -6389,10 +6379,6 @@ gc_start(rb_objspace_t *objspace, unsigned int reason)
reason |= gc_needs_major_flags;
do_full_mark = TRUE;
}
else if (RGENGC_FORCE_MAJOR_GC) {
reason = GPR_FLAG_MAJOR_BY_FORCE;
do_full_mark = TRUE;
}

/* if major gc has been disabled, never do a full mark */
if (!gc_config_full_mark_val) {
Expand Down

0 comments on commit 01e509c

Please sign in to comment.