ประโยคภาษาจีน : 中文句子 |
---|
dāng 当 nǐ 你 fēn pèi 分配 duì xiàng 对象 de 的 zǐ 子 duì xiàng 对象 shí 时 rú 如 guǒ zi 果子 duì xiàng 对象 de 的 shēng cún 生存 shí jiān 时间 hé 和 fù 父 duì xiàng 对象 jī běn 基本 xiāng tóng 相同 tā men 他们 yīng gāi 应该 bèi 被 tóng shí 同时 fēn pèi 分配 yǐ 以 shǐ 使 tā men 他们 zài 在 duī 堆 zhòng dì 中的 wèi zhi 位置 yě 也 shì 是 xiāng jìn 相近 de 的 |
When you allocate the children of an object, if the children need to have similar life time as their parent they should be allocated at the same time so they will stay together on the GC heap. |