public IRubyObject reCacheFrom(RubyModule target, ThreadContext context, String name, int index) { int newGeneration = context.getRuntime().getConstantGeneration(); IRubyObject value = target.fastGetConstantFromNoConstMissing(name); constants[index] = value; if (value != null) { constantGenerations[index] = newGeneration; constantTargetHashes[index] = target.hashCode(); } return value; }