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

bin: fluentd: Specify trace_instruction as false if available #3376

Merged
merged 2 commits into from
May 18, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
bin: fluentd: Specify trace_instruction as false if available
In recent CRuby, RubyVM::InstructionSequence is always defined.
But other implementation such as truffleruby does not provide such
class.

Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
  • Loading branch information
cosmo0920 committed May 17, 2021
commit 4e501a5a2ab2ffc1a0677e6c8191b7813e707784
4 changes: 3 additions & 1 deletion bin/fluentd
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-

RubyVM::InstructionSequence.compile_option = {trace_instruction: false} rescue nil
if defined?(RubyVM::InstructionSequence)
RubyVM::InstructionSequence.compile_option = {trace_instruction: false}
end

here = File.dirname(__FILE__)
$LOAD_PATH << File.expand_path(File.join(here, '..', 'lib'))
Expand Down