About the depth variable in uvm_object::copy source code

Hi
In uvm_object::copy method which inside UVM source code, there is one static variable named as depth. Could you help clarify why it is needed here, I have no idea what its purpose.

Thank you
Longhui

In reply to flhcherish:

The comment next to it says it’s for cycle checking. I’m assuming that supposed to prevent cyclic object copying.