Skip to content

[UR] std::vector is copied unnecessary in leak check #18341

@AlexeySachkov

Description

@AlexeySachkov

RefRuntimeInfo(int64_t refCount, std::type_index type,
std::vector<BacktraceLine> backtrace)
: refCount(refCount), type(type), backtrace(backtrace) {}

If I understand correctly, multiple copies are being done here: once when we invoke the constructor and then within the constructor itself. Considering that this is a debugging thing/layer I don't think that the impact is significant, but still nice to fix.

Reported by Coverity as CID 443321

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions