Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

!tls: move handling to user #598

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

!tls: move handling to user #598

wants to merge 3 commits into from

Conversation

badochov
Copy link
Contributor

@badochov badochov commented Sep 24, 2024

Description

Moves TLS handling to user. To make the allocated memory smaller and implementation more versatile.
Drawback: on beginthreadex malloc is called on calling thread and on endthread free is called on calling thread, resulting in increased stack usage

Motivation and Context

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (refactoring, style fixes, git/CI config, submodule management, no code logic changes)

How Has This Been Tested?

  • Already covered by automatic testing.
  • New test added: (add PR link here).
  • Tested by hand on: (list targets here).

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing linter checks and tests passed.
  • My changes generate no new compilation warnings for any of the targets.

Special treatment

@badochov
Copy link
Contributor Author

include/auxv.h Outdated Show resolved Hide resolved
include/elf.h Outdated Show resolved Hide resolved
include/elf.h Outdated Show resolved Hide resolved
include/elf.h Outdated Show resolved Hide resolved
include/elf.h Outdated Show resolved Hide resolved
proc/process.c Outdated Show resolved Hide resolved
proc/process.c Outdated Show resolved Hide resolved
proc/process.c Outdated Show resolved Hide resolved
proc/process.c Outdated Show resolved Hide resolved
@badochov badochov marked this pull request as ready for review September 24, 2024 16:32
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.

1 participant