Class NewRelic::Agent::VM::RubiniusVM
In: lib/new_relic/agent/vm/rubinius_vm.rb
Parent: Object

Methods

Public Instance methods

The ’+ 0’ bits in here are a workaround for a Rubinius bug wherein Rubinius::Metrics.data returns 0‘s as Bignums, and these Bignums cannot be safely subtraced from Fixnums. The + 0 has the effect of truncating to a Fixnum if possible without loss of precision. See github.com/rubinius/rubinius/issues/3316

[Validate]