Skip to content

JULIA_COPY_STACKS=1 disable threading #169

@arnaud-ma

Description

@arnaud-ma

This upstream issue: JuliaLang/julia#47591 is still current.

It would be good to (highly) warn the user about this. It is very difficult and takes a lot of time to get to the source of the bug, we must realize that:

  1. there is a slowdown
  2. multithreading is disabled even if Threads.nthreads() != 1
  3. it comes from JULIA_COPY_STACKS
  4. it comes from JavaCall

I don't know if this is the case for all systems though. My versioninfo:

julia> versioninfo()
Julia Version 1.11.5
Commit 760b2e5b739 (2025-04-14 06:53 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 16 × AMD Ryzen 7 8840HS w/ Radeon 780M Graphics
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, znver3)
Threads: 16 default, 0 interactive, 8 GC (on 16 virtual cores)
Environment:
  JULIA_COPY_STACKS = 1

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