Commit Graph

14 Commits

Author SHA1 Message Date
Jost Berthold
ec8fb243c7 import fingerprint function from API, drop TypeRep import 2018-01-16 22:33:25 +11:00
Jost Berthold
1c2b868c34 Extended description in cabal file, corrected errors 2015-11-30 18:55:42 +11:00
Jost Berthold
0c2776b164 Fixes in code comments and Haddock documentation (no code) 2015-11-27 23:44:26 +11:00
Jost Berthold
0dc81ba54f correct a spelling mistake 2015-07-10 09:12:40 +10:00
Jost Berthold
4e9549fad6 support base 4.8.0 (TypeRep changed) 2015-06-22 23:19:14 +10:00
Jost Berthold
e57ccd8026 small corrections to haddock documentation 2014-09-12 10:52:20 +02:00
Jost Berthold
464cb03fa2 Block/retry if a blackhole is met during packing
If packing hits a blackhole, the packing thread should block
and retry, to get consistent behaviour at the Haskell level.
To enable this from Haskell, the core routine now checks and
evaluates the blackhole before retrying (i.e. blocks on the
known-to-be-blackholed data).

As the blackhole is not necessarily (and most likely not) the
graphroot, the C code writes its address into the buffer at
position 0. This is OK since packing fails anyway, so the buffer
won't hold any useful data.
2014-09-06 20:34:17 +02:00
Jost Berthold
d6d6b18a99 split into several modules, use hsc2hs for error codes 2014-08-28 14:23:04 +02:00
Jost Berthold
b6a63ddaa2 add a note about shrinkMutableByteArray 2014-08-18 10:22:37 +02:00
Jost Berthold
e03c67de2d Rewritten Pack.c, eliminating all global variables
Pack.c should now be thread-safe for unpacking and packing,
as its functions pass around an explicitly allocated state.
changes should eventually go back into the RTS code (but we
need to see the performance first).

The PAP case has not been rewritten yet, it should be revised
to pack the bitmap instead of tagging the packed stack elements.
2014-08-15 15:58:16 +02:00
Jost Berthold
a8eb2df7a4 small clean-up 2014-08-14 13:46:03 +02:00
Jost Berthold
060660bf61 test suite for exceptions, with exitcode-1.0 2014-07-27 17:45:10 +02:00
Jost Berthold
714ab55854 Some adjustments, towards more robust version
- lock (haskell level)
- cabal file and C code with debug support
- test suite (one program for now)
2014-07-24 20:35:52 +02:00
Michael Budde
f7e61add3d Replace Haskell API with GHC.Packing module
Taken from https://github.com/jberthold/rts-serialisation
2014-05-21 11:24:18 +02:00