caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Bauer, Christoph" <bauerchristoph@siemens.com>
To: caml-list <caml-list@inria.fr>
Subject: AW: [Caml-list] memory mapped files with bigarray on windows
Date: Thu, 18 Sep 2014 14:41:37 +0000	[thread overview]
Message-ID: <B604D632D4692C45A95E5EB6E3E0FFF201AD793E@DEKOMMBX002.net.plm.eds.com> (raw)
In-Reply-To: <1411038566.5797.108.camel@e130>

Thanks for all the valuable answers.
I submitted a bug report: http://caml.inria.fr/mantis/view.php?id=6567

PR 3571 is somewhat different. The msync() is called also in the finalizer.
My problem was, that the finalizer was called too late (therefore the Gc.full_major ()).

To solve my problem I wrote as Gerd suggested my own Bigarray.Array1.flush.
It calls msync() on linux an FlushViewOfFile() on Windows.
I added the code to the bug  report.

Christoph Bauer



-----------------
Siemens Industry Software GmbH & Co. KG; Anschrift: Franz-Geuer-Str. 10, 50823 Köln;
Kommanditgesellschaft: Sitz der Gesellschaft: Köln; Registergericht: Amtsgericht Köln, HRA 28227;
Geschäftsführung und persönlich haftender Gesellschafter: Siemens Industry Software Management GmbH;
Geschäftsführer: Urban August, Daniel Trebes; Sitz der Gesellschaft: Köln; Registergericht: Amtsgericht Köln, HRB 70858

      reply	other threads:[~2014-09-18 14:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-18  8:04 Bauer, Christoph
2014-09-18  8:24 ` Gabriel Scherer
2014-09-18 11:09 ` Gerd Stolpmann
2014-09-18 14:41   ` Bauer, Christoph [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B604D632D4692C45A95E5EB6E3E0FFF201AD793E@DEKOMMBX002.net.plm.eds.com \
    --to=bauerchristoph@siemens.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).