summaryrefslogtreecommitdiff
path: root/GPL
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2020-11-04 12:04:23 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2020-11-04 14:40:50 -0800
commit70680feeea9e9e2c13ab5e456c2d0ffe0142bb12 (patch)
tree371004139167116412982c61b661f9a990021598 /GPL
parenta8581ce673e14ba5ff48d0a3cb71368daa82558b (diff)
Simplify setting instance variables
Since T_OBJECT objects come to life as embedded objects, that means that ROBJECT_NUMIV will always return a _minimum_ of ROBJECT_EMBED_LEN_MAX. If ivup.index is *greater* than ROBJECT_NUMIV, then we know that the object *must not* be an embedded object. Thus we can skip the ROBJECT_EMBED_LEN_MAX check as well as initializing internals of embedded objects.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3734
Diffstat (limited to 'GPL')
0 files changed, 0 insertions, 0 deletions