Browse thread
[Caml-list] help with caml_stat_alloc
-
Jonathan Roewen
-
Richard Jones
- Olivier Andrieu
- Anatoly Zaretsky
-
Richard Jones
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Olivier Andrieu <oandrieu@n...> |
| Subject: | Re: [Caml-list] help with caml_stat_alloc |
Richard Jones [Monday 24 July 2006] : > > On Mon, Jul 24, 2006 at 12:50:32AM -0700, Jonathan Roewen wrote: > > I'm trying to allocate some memory outside of the caml heap, and > > I think caml_stat_alloc is the right function to use. Anyways, > > it's generating seg-faults, so I'm hoping someone can help me fix > > my implementation. > > What was wrong with malloc? caml_stat_alloc _is_ malloc, it's just that it raises the ocaml out-of-memory exception if malloc returns NULL.