Skip to content

Why _TLS ptls need duplicate OSTLS's memory? #18

@chyin6

Description

@chyin6

ULONG cb_TLS = sizeof( _TLS ) + sizeof( OSTLS ) + g_cbUserTLSSize;

ostls in _TLS is a struct not a point so sizeof(_TLS) already contains sizeof(OSTLS). Why _TLS's instance ptls need duplicate OSTLS's memory? I tried to delete sizeof(OSTLS) and run the sample. Everything seems good.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions