diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2020-11-04 12:04:23 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2020-11-04 14:40:50 -0800 |
commit | 70680feeea9e9e2c13ab5e456c2d0ffe0142bb12 (patch) | |
tree | 371004139167116412982c61b661f9a990021598 /thread_sync.c | |
parent | a8581ce673e14ba5ff48d0a3cb71368daa82558b (diff) | |
download | ruby-70680feeea9e9e2c13ab5e456c2d0ffe0142bb12.tar.gz |
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.
Diffstat (limited to 'thread_sync.c')
0 files changed, 0 insertions, 0 deletions