-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that pool owners are correctly set on pool adoption
(Plus a new compaction test for the failure triggered by getting this wrong)
- Loading branch information
1 parent
cb7796f
commit 61ab797
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
(* TEST | ||
flags += "-alert -unsafe_parallelism"; | ||
runtime5; | ||
{ bytecode; } | ||
{ native; } | ||
*) | ||
|
||
let num_domains = 20 | ||
|
||
let go () = | ||
let n = 50_000 in | ||
let c = Array.make n None in | ||
for i = 0 to n-1 do | ||
c.(i) <- Some (i, i) | ||
done; | ||
Gc.compact () | ||
|
||
let () = | ||
Array.init num_domains (fun _ -> Domain.spawn go) | ||
|> Array.iter Domain.join | ||
|