Commit Graph

65 Commits (7924ec57074c127a7dffb79391eea9bc514491e1)

Author SHA1 Message Date
Alain Frisch 8557a86477 Also enable more warnings in stdlib/ and fix them. 2016-03-15 22:47:26 +01:00
Damien Doligez 5401ce8473 Update headers for the new license.
Remains to be done: remove all headers in testsuite/tests.
2016-02-18 16:59:16 +01:00
Damien Doligez 0225ca01e3 GC latency improvements 2015-12-21 14:27:46 +01:00
Louis Gesbert 24e42d4d22 Add v=0x400 to OCAMLRUNPARAM to print more Gc stats on exit
In a format following that of Gc.print_stat. I chose to print only the "quick_stat"
values rather than call gc_ctrl.c::heap_stats because it's lighter, and the extra
information is typically not very useful at program exit.

Also adds documentation for the 0x400 flag (in man and Gc module)

This replaces the previous undocumented 0x400 that only displayed the
total (minwords + majwords - prowords) and with a different format,
since keeping both wouldn't provide more information.
2015-12-04 21:09:27 +09:00
Damien Doligez 860c670848 merge branch 4.02 from 4.02.1 (rev 15540) to a few fixes after 4.02.2 (rev 16205)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16214 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-17 14:31:05 +00:00
Damien Doligez 3d89f3ef7e PR#6664: Crash when finalising lazy values of the wrong type.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15876 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-03-04 19:58:49 +00:00
Mark Shinwell 830a4fba2a minor update of comment in gc.mli
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15212 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-09-11 11:17:36 +00:00
Jérémie Dimino d095ba7f89 PR#6540: update documentation of default values in gc.mli
(Patch by Daniel Richman)


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15185 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-09-03 13:35:48 +00:00
Damien Doligez cbfe627f92 merge changes from branch 4.02 from branching (rev 14852) to 4.02.0+rc1 (rev 15121)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15125 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-08-22 13:45:02 +00:00
Damien Doligez 9baf42b72d safe-string: documentation fixes and add a couple of functions in Pervasives and Digest
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14721 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-05-01 21:54:15 +00:00
Damien Doligez 9d86709547 fix major performance problem on large heaps by making the heap increment proportional to the heap size
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14442 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-02-20 13:04:01 +00:00
Damien Doligez def31744f9 remove all $Id keywords
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-15 17:50:56 +00:00
Alain Frisch 2845f7b7ea Typo.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12338 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-04-11 03:50:39 +00:00
Damien Doligez 7c7cad0ee2 documentation
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12011 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-10 20:08:38 +00:00
Damien Doligez cca0035fbb continuing to change the name to OCaml
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11922 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-21 15:37:54 +00:00
Damien Doligez 3b507dd1aa renaming of Objective Caml to OCaml and cleanup of copyright headers
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-27 14:17:02 +00:00
Damien Doligez 9058be97f9 typo
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11112 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-07 13:12:54 +00:00
Damien Doligez 9209d550c5 PR#4831: use tags @since and @before in std lib
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10457 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-05-21 18:30:12 +00:00
Damien Doligez 29224ccbe6 PR#4742: finalisation function raising an exception blocks other finalisations
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10393 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-05-12 14:32:23 +00:00
Xavier Leroy 09ba69134f - Refactoring of otherlibs/systhreads
- PR#4702: added C functions to register threads not created by Caml
- PR#5013: wrong implementation of condition variables under Win32
- PR#4979: wrong error code handling under Win32
- Added standard include <caml/threads.h> 
- Added "stack_size" field in GC statistics.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10315 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-04-27 07:55:08 +00:00
Damien Doligez 1f95b17570 merge changes from 3.10.2merged to 3.11.0
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9153 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2008-12-03 18:09:09 +00:00
Damien Doligez 04aa158cb6 merge changes from 3.10.1 to 3.10.2
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8823 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2008-02-29 14:21:22 +00:00
Damien Doligez 8ecf3fc156 better anti-fragmentation measures
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8822 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2008-02-29 12:56:15 +00:00
Damien Doligez 0e5ca9dca5 nettoyage
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7164 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-10-25 18:34:07 +00:00
Damien Doligez 2c9f41ab42 PR#3002
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6603 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-08-17 12:32:02 +00:00
Damien Doligez cd64d89caf finalisation dans l'ordre
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6403 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-06-14 13:27:42 +00:00
Damien Doligez a28cc2b00f ajout Gc.quick_stat
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6097 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-01-30 14:29:04 +00:00
Damien Doligez 0c7aecb88d depollution suite (et fin?) (PR#1914 et PR#1956)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6047 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-01-02 19:23:29 +00:00
Damien Doligez e41863b492 changement overhead par defaut -> 80
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5062 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-08-01 14:14:10 +00:00
Damien Doligez 3b358c7349 fix declenchement du compactage
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4854 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-28 16:57:31 +00:00
Damien Doligez 5a82cfee84 ajout hexadecimal pour Gc.verbose
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4369 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-02-08 19:34:49 +00:00
Damien Doligez 8ea64b58dc byterun/finalise.c: support pour les lazy finalises
byterun/gc_ctrl.c: ajout Gc.major_slice
byterun/major_gc.c: gros bug dans les valeurs finalisees + ajout Gc.major_slice
byterun/major_gc.h: gros bug dans les valeurs finalisees + ajout Gc.major_slice
byterun/memory.c: typo dans un commentaire
byterun/minor_gc.c: petit bug, ajout Gc.major_slice
parsing/parser.mly: plus de conflits; l'automate reste identique
stdlib/gc.ml: ajout Gc.major_slice
stdlib/gc.mli: ajout Gc.major_slice
stdlib/sys.ml: ajout Sys.ocaml_version
stdlib/sys.mli: ajout Sys.ocaml_version
utils/config.mlp: ajout Sys.ocaml_version


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4357 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-02-05 17:11:33 +00:00
Damien Doligez 15c25173cf ajout Gc.top_heap_words
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4335 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-02-01 12:23:58 +00:00
Damien Doligez d557793074 clarification doc
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4287 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-01-20 17:27:09 +00:00
Damien Doligez 09a8c6bc78 configure: suppression "smart preprocessing" pour MacOS X
asmrun/roots.c, byterun/alloc.c, byterun/gc_ctrl.c, byterun/minor_gc.c,
byterun/minor_gc.h, byterun/roots.c, byterun/startup.c:
         derecursivation du GC mineur

byterun/config.h, stdlib/gc.mli: compactage active par defaut (300%)

otherlibs/unix/select.c: ajout include MacOS X

.cvsignore: bricoles


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4264 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-01-18 15:13:26 +00:00
Xavier Leroy 7501784c80 MAJ en-tetes pour mentionner la 'special exception' sur la LGPL
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4144 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-07 13:41:02 +00:00
Maxence Guesdon 966c128bc9 commentaires après
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4082 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-03 22:01:28 +00:00
Maxence Guesdon a692df441c Modification emplacement et syntaxe des commentaires pour OCamldoc
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3924 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-10-26 22:37:14 +00:00
Damien Doligez 1248b6af82 documentation
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3868 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-10-09 14:35:45 +00:00
Damien Doligez ee49a6e937 bug de Gc.counters
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3636 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-08-13 13:54:04 +00:00
Xavier Leroy d7cdc49721 Doc: flag 0x100 (startup messages) pour verbose
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3420 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-02-19 10:07:16 +00:00
Damien Doligez dcc3b0ce03 gc.ml, gc.mli: compteurs flottants
arg.ml: affichage option -help


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3399 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-02-05 14:59:24 +00:00
Xavier Leroy 77431b1310 Typo dans la doc
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2857 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-02-24 17:42:11 +00:00
Damien Doligez 9878da4088 petit changement de doc
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2756 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-01-12 15:53:50 +00:00
Damien Doligez 1f1165dfac modif doc
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2748 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-01-07 18:07:24 +00:00
Damien Doligez 0a2021e986 finalisation de valeurs allouees
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2746 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-01-07 16:51:58 +00:00
Damien Doligez 86764721c3 amelioration doc
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2722 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-12-30 17:09:47 +00:00
Damien Doligez 8bc6dec9bb ajout Gc.counters et Gc.allocated_bytes
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2645 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-11-29 20:02:33 +00:00
Damien Doligez 44c244d311 tabs -> spaces
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2638 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-11-29 19:04:56 +00:00
Xavier Leroy cc0f32b054 Changement de la licence
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2553 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-11-17 18:59:06 +00:00