Skip to content

Conversation

@winter-wang
Copy link
Contributor

@winter-wang winter-wang commented Jan 30, 2024

PR types

Others

PR changes

Others

Description

value增加互斥的id成员变量。 保证了value的判等的绝对正确性。

在一起特殊情况下,value被析构后又被新建在了同样的内存地址。会导致新旧value的判等失败,反回true。本pr在这种情况下,会判等成功,反回false。

Other

Pcard-67164

@winter-wang winter-wang merged commit f0451cf into PaddlePaddle:develop Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants