Skip to content

Commit

Permalink
[chore] Allow compression for erlang >= 27.1 (#836)
Browse files Browse the repository at this point in the history
* [chore] Allow compression for erlang >= 27.1
  • Loading branch information
scohen authored Oct 28, 2024
1 parent 1fd59fb commit 661aa46
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions apps/common/lib/elixir/features.ex
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,13 @@ defmodule Elixir.Features do
A bug in Erlang/OTP 27.0.0 and 27.0.1 can cause a segfault when
traversing the entire table with something like `:ets.foldl/3` if the
`:compressed` table option is used. When this is fixed, we can change
the version check to `"< 27.0.0 or >= 27.X"`.
`:compressed` table option is used. The issue was fixed in Erlang 27.1
Issue to track: https://github.com/erlang/otp/issues/8682
Relevant issue: https://github.com/erlang/otp/issues/8682
"""
def can_use_compressed_ets_table? do
%{erlang: erlang_version} = Versions.to_versions(Versions.current())

Version.match?(erlang_version, "< 27.0.0")
Version.match?(erlang_version, "< 27.0.0 or >= 27.1.0")
end
end

0 comments on commit 661aa46

Please sign in to comment.