summaryrefslogtreecommitdiff
path: root/byterun/array.c
Commit message (Collapse)AuthorAgeFilesLines
* Update headers for the new license.Damien Doligez2016-02-181-12/+14
| | | | Remains to be done: remove all headers in testsuite/tests.
* add commentsDamien Doligez2015-12-211-0/+2
|
* GC latency improvementsDamien Doligez2015-12-211-3/+6
|
* minor: remove useless assignment (clang warning)Gabriel Scherer2015-12-121-1/+0
|
* Remove useless stdio #includeMarc Lasson2015-11-201-1/+0
|
* Delete stat_alloc_no_raise and duplicate alloc_shrMarc Lasson2015-11-201-2/+2
| | | | | I replaced all calls to stat_alloc_no_raise by plain mallocs. Also, I reimplemented alloc_shr_no_raise by duplicating the code of alloc_shr to avoid any overhead induced by an extra function call.
* Fix a memory leak in concat_arrayMarc Lasson2015-11-201-3/+12
| | | | | There is a memory leak when the second or the third call to `caml_stack_alloc` in `caml_array_concat` raises Out_of_memory. This will fix it.
* add create_float_array and deprecate make_float_arrayDamien Doligez2015-09-071-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16407 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#5887: move the byterun/*.h headers to byterun/caml/*.h to avoid header ↵Gabriel Scherer2014-12-271-5/+5
| | | | | | | | | name clashes (Jérôme Vouillon and Adrien Nader and Peter Zotov) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15757 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Start tidying up the runtime:Damien Doligez2014-12-121-0/+3
| | | | | | | | | | - document most of the "size" and "length" parameters and global variables, specifying bytes or words. Change some of them from bytes to words. - start getting rid of "char *" and use sensible types instead. - other small changes git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15647 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Reflecting commit 15010 on version/4.02:Xavier Leroy2014-07-181-2/+6
| | | | | | | | PR#6460: runtime assertion failure with large [| e1;...eN |] float array expressions git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15011 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* #6180: avoid redundant check in caml_make_float_vect.Alain Frisch2013-12-041-5/+16
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14338 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* #6180: efficient creation of uninitialized float arrays.Alain Frisch2013-09-171-0/+10
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* segfault in Array.append in rare caseDamien Doligez2012-12-061-3/+4
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13113 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* remove all $Id keywordsDamien Doligez2012-10-151-2/+0
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* OCaml, not Objective Caml, I get it.Xavier Leroy2011-12-211-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11914 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Module Array: faster implementations of "blit", "copy", "sub",Xavier Leroy2011-12-211-6/+187
| | | | | | | "append" and "concat" (PR#2395, PR#2787, PR#4591) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11913 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* renaming of Objective Caml to OCaml and cleanup of copyright headersDamien Doligez2011-07-271-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Added public functions "caml_array_length" and "caml_is_double_array"Xavier Leroy2011-03-291-0/+11
| | | | | | | | to abstract (slightly) over the concrete representation of arrays. Contributed by F. Le Fessant. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11006 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* clean up spaces and tabsDamien Doligez2010-01-221-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9547 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Keep array functions in the native runtime. They might be used by custom C code.Alain Frisch2008-09-081-4/+0
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8995 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#4448: replace dense page table by sparse hash table.Xavier Leroy2008-01-031-2/+2
| | | | | | | | Introduction and use of macros Is_in_value_area, Is_in_heap_or_young. Removal of USE_MMAP_INSTEAD_OF_MALLOC. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8743 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Merge the natdynlink branch into HEAD.Alain Frisch2007-11-061-2/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8477 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Remplacement long/unsigned long par intnat/uintnatXavier Leroy2005-09-221-5/+5
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7064 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* depollution suite (et fin?) (PR#1914 et PR#1956)Damien Doligez2004-01-021-4/+4
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6047 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* depollution suite (PR#1914 et PR#1956)Damien Doligez2004-01-011-2/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6045 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* depollution suite (PR#1914, PR#1956)Damien Doligez2003-12-311-26/+26
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6044 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* depollution suite (PR#1914 et PR#1956); byterun/weak.c: PR#1929 suiteDamien Doligez2003-12-291-3/+3
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6041 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Les acces hors bornes dans les tableaux et les chaines levent tous la meme ↵Xavier Leroy2003-11-211-5/+5
| | | | | | exception Invalid_arg("index out of bounds") pour compatibilite avec ocamlopt git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5950 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* MAJ en-tetes pour mentionner la 'special exception' sur la LGPLXavier Leroy2001-12-071-1/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4144 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Chargement dynamique de primitives CXavier Leroy2001-08-281-13/+13
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3677 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* bug make_array et consortsDamien Doligez2001-08-211-2/+6
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3641 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Begin_roots -> CAMLparamDamien Doligez1999-11-291-29/+27
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2617 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Changement de la licenceXavier Leroy1999-11-171-1/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2553 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* En ocamlopt, les acces hors bornes levent Invalid_argument au lieu de ↵Xavier Leroy1998-11-111-9/+0
| | | | | | planter le programme. Itou pour les fonctions C qui appellent invalid_argument. Teste sur Intel, a tester sur les autres git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2165 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* nouvelles fonctions alloc/alloc_smallDamien Doligez1998-10-261-9/+4
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2134 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Array.new -> Array.make dans invalid_argumentXavier Leroy1998-10-201-2/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2125 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Adoption des memes representations que dans ocamlopt pour les tableaux de ↵Xavier Leroy1998-04-061-23/+164
| | | | | | | | | flottants et les fonctions mutuellement recursives. Simplification de la compilation du let rec de valeurs. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1895 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Invalid_argument "Array.new" -> "Array.make"Damien Doligez1997-09-111-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1704 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Sources C convertis en ANSI CXavier Leroy1997-09-021-6/+3
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1696 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Changement de Push/Pop_roots en Begin/End_rootsDamien Doligez1997-05-261-30/+22
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1572 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Utilisation de check_urgent_gcXavier Leroy1996-11-151-0/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1194 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Renommage en Objective CamlXavier Leroy1996-04-301-2/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@782 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Ajout des notices de copyrightXavier Leroy1995-08-091-0/+13
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@195 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Introduction de primitives C pour {Array,String}.{get,set}Xavier Leroy1995-06-151-0/+17
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@30 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Passage a la version bootstrappee (franchissement du Rubicon)Xavier Leroy1995-05-041-0/+45
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02