Skip to content

TLSWrap reports incorrect self_size #4250

Closed
@paddybyers

Description

@paddybyers

Heapdumped profiles on node >=4.2 show unfeasibly large retained sizes for native TLSWRAP instances.

I believe that this call: https://github.com/nodejs/node/blob/master/src/async-wrap.cc#L55 to self_size(), when on a TLSWrap, are in fact entering TLSWrap::Cast() and thus returning the this pointer value. I don't know yet whether the problem is in the way it is being called or in the declaration in TLSWrap but for some reason the self_size() call is resolving to the wrong vtable entry. Someone more expert will I am sure find the root cause quicker than I will.

/cc @indutny is this yours?

Metadata

Metadata

Assignees

No one assigned

    Labels

    c++Issues and PRs that require attention from people who are familiar with C++.tlsIssues and PRs related to the tls subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions