Module: Trailblazer::Activity::Circuit::RubyWithUnfixedCompaction

Defined in:
lib/trailblazer/activity/circuit/ruby_with_unfixed_compaction.rb

Overview

This is a hot fix for Ruby versions that haven’t fixed the GC compaction bug:

https://redmine.ruby-lang.org/issues/20853
https://bugs.ruby-lang.org/issues/20868

Affected versions might be: 3.1.x, 3.2.?????????, 3.3.0-3.3.6 You don’t need this fix in the following versions:

If you experience this bug: github.com/trailblazer/trailblazer-activity/issues/60

NoMethodError: undefined method `[]' for nil

you need to do

Trailblazer::Activity::Circuit.include(RubyWithUnfixedCompaction)

Instance Method Summary collapse

Instance Method Details

#initialize(wiring, *args, **options) ⇒ Object



20
21
22
23
24
# File 'lib/trailblazer/activity/circuit/ruby_with_unfixed_compaction.rb', line 20

def initialize(wiring, *args, **options)
  wiring.compare_by_identity

  super(wiring, *args, **options)
end