Red book operator duplicates the top object X on the operand stack. dup copies only the object; the value of a composite object is not copied but is shared.
Core code registered in systemdict.