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

Sparc: Don't use %g7 in the JIT compiled code #149

Open
nbuwe opened this issue Aug 18, 2023 · 0 comments
Open

Sparc: Don't use %g7 in the JIT compiled code #149

nbuwe opened this issue Aug 18, 2023 · 0 comments

Comments

@nbuwe
Copy link

nbuwe commented Aug 18, 2023

Self JIT compiler on sparc emits code that uses %g7 register. But that register is reserved for the use by the system and is commonly used by the ELF TLS (thread local storage).

This actually happens even though Self does not use pthreads, b/c jemalloc, the default malloc on NetBSD, does use TLS, and JIT code clobbers it and malloc crashes. The kludge I used while making the sparc port compile again was to use a different malloc implementation.

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

No branches or pull requests

1 participant