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

wrong stack_size when on another thread #7527

Closed
vicuna opened this issue May 4, 2017 · 3 comments
Closed

wrong stack_size when on another thread #7527

vicuna opened this issue May 4, 2017 · 3 comments
Assignees

Comments

@vicuna
Copy link

vicuna commented May 4, 2017

Original bug ID: 7527
Reporter: domsj
Assigned to: @mshinwell
Status: assigned (set by @mshinwell on 2017-05-04T15:37:10Z)
Resolution: open
Priority: normal
Severity: minor
Version: 4.03.0
Category: standard library

Bug description

let () =
  let print_stack_size () =
    let open Gc in
    Printf.printf "stack_size=%i\n" (quick_stat ()).stack_size;
  in
  print_stack_size ();
  Thread.create print_stack_size () |> Thread.join

this snippet prints:

stack_size=26
stack_size=1035826253803286485
@vicuna
Copy link
Author

vicuna commented May 4, 2017

Comment author: @mshinwell

This should be fixed by:

#1062

which I shall get back to as soon as I can.

@github-actions
Copy link

github-actions bot commented May 8, 2020

This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc.

@github-actions github-actions bot added the Stale label May 8, 2020
@xavierleroy
Copy link
Contributor

Fixed by #1062 and #8670 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants