Repository navigation
Updated GC signatures - #1530
Merged
Merged
Conversation
sampersand
force-pushed
the
swesterman/23-09-06/gc
branch
2 times, most recently
from
September 21, 2023 03:10
a120da7 to
6171416
Compare
sampersand
marked this pull request as ready for review
September 21, 2023 03:11
sampersand
force-pushed
the
swesterman/23-09-06/gc
branch
from
September 21, 2023 03:13
6171416 to
c63a5e1
Compare
Contributor
Author
|
Oh lovely, ruby segfault: https://github.com/ruby/rbs/actions/runs/6256735966/job/16988021332?pr=1530 |
soutaro
self-requested a review
December 5, 2023 00:33
soutaro
force-pushed
the
swesterman/23-09-06/gc
branch
from
December 5, 2023 01:24
dea3f9a to
dfaec42
Compare
sampersand
force-pushed
the
swesterman/23-09-06/gc
branch
from
December 26, 2023 23:38
05c9850 to
d756270
Compare
sampersand
force-pushed
the
swesterman/23-09-06/gc
branch
5 times, most recently
from
February 8, 2024 03:36
d1f07ba to
90becea
Compare
soutaro
force-pushed
the
swesterman/23-09-06/gc
branch
from
March 18, 2024 05:21
90becea to
e1b95e8
Compare
soutaro
enabled auto-merge
March 18, 2024 05:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pr updates GC's signatures, unit tests, and adds in the
Writertest type (which implements_Writer).Two methods,
GC.latest_gc_infoandGC.stattechnically can accept any hash, and just add their respective keys/values (e.g.[K,V] (Hash[K, V]) -> Hash[K | Symbol, V | Integer]). However, this is currently not testable, and the added complication of supporting it isn't worth the very niche—but technically correct—signature.In addition to removing the occasional leading
::, this has the following changes:GC::compact_infotype alias was added for the return value ofGC.compactand other methodsGC::{INTERNAL_CONSTANTS,OPTS}: Moved inside the classGC.start: Removed duplicate argument names.GC.stat: Gave actual names to arguments, Hash variant is now nilable.GC.stress:boolnotTrueClass | FalseClassGC.stress=: SplitIntegerandboolcases apart to fix return value.GC.verify_compaction_references: Added optionaltoward,double_heapandexpand_heapkeyword argumentsGC.latest_gc_info:nilis now accepted, removedKfrom theHash[K | Symbol, unty]edfunction.GC.garbage_collect: Removed duplicate argument names.GC::Profilerwas moved inside the class, andauto_compact-related functions were added.