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

fix: use expand_heap for Ruby 3.2.0+ #367

Merged

Conversation

oleksii-leonov
Copy link
Contributor

Summary

Starting Ruby 3.2.0 GC.verify_compaction_references(expand_heap: true, toward: :empty) should be used instead of GC.verify_compaction_references(double_heap: true, toward: :empty).

Before:

ruby -Ilib:test test/geos_capi/polygon_test.rb
<internal:gc>:251: warning: double_heap is deprecated, please use expand_heap instead
  # ...

After:

ruby -Ilib:test test/geos_capi/polygon_test.rb
  # ...

Summary

Starting Ruby 3.2.0 `GC.verify_compaction_references(expand_heap: true, toward: :empty)` should be used instead of `GC.verify_compaction_references(double_heap: true, toward: :empty)`.

Before:

```shell
ruby -Ilib:test test/geos_capi/polygon_test.rb
<internal:gc>:251: warning: double_heap is deprecated, please use expand_heap instead
  # ...
```

After:

```shell
ruby -Ilib:test test/geos_capi/polygon_test.rb
  # ...
```
@keithdoggett keithdoggett merged commit f7f1451 into rgeo:main Dec 4, 2023
15 checks passed
@keithdoggett
Copy link
Member

Thanks @oleksii-leonov!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants