pkgsrc/lang/ocaml/patches/patch-testsuite_tests_lib-systhreads_testyield.ml
jaapb 24289a687d Updated lang/ocaml to 4.11.1.
Patches for solaris and friends are reinstated (thanks jperkin@)
Also thanks to he@ for testing on powerpc and arm

Highlights for 4.10.0:
* A new best-fit allocator for the major heap which reducing both GC cost
  and memory usage.
* Immutable strings are now enforced at configuration time
* User-defined indexing operators for multidimensional arrays
* Miscellaneous improvements to the manual
* A more precise exhaustiveness check for GADTs
* Many bug fixes

Highlights for 4.11.0:
* Statmemprof: a new statistical memory profiler
* A new instrumented runtime that logs runtime statistics in a standard
  format
* A native backend for the RISC-V architecture
* Improved backtraces that refer to function names
* Suppport for recursive and yet unboxed types
* A quoted extension syntax for ppxs.
* Many quality of life improvements
* Many bug fixes.

4.11.1 is a bugfix release. Full details in the CHANGELOG included with
the distribution.
2020-12-09 10:33:04 +00:00

18 lines
563 B
OCaml

$NetBSD: patch-testsuite_tests_lib-systhreads_testyield.ml,v 1.2 2020/12/09 10:33:04 jaapb Exp $
On NetBSD, the "thread scheduler" appears to just schedule two
threads out of 4 when all they in essence to is "yield", and not
do round-robin scheduling, causing the test to loop. Reduce the
number of threads in the test to 2.
--- testsuite/tests/lib-systhreads/testyield.ml.orig 2020-09-01 12:47:58.000000000 +0000
+++ testsuite/tests/lib-systhreads/testyield.ml
@@ -8,7 +8,7 @@
*** native
*)
-let threads = 4
+let threads = 2
let are_ready = ref 0