Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
head.hackage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alex Biehl
head.hackage
Commits
09e32ab0
Commit
09e32ab0
authored
6 years ago
by
Andreas Klebinger
Committed by
Herbert Valerio Riedel
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Packman patch
parent
85802c09
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
patches/packman-0.5.0.patch
+73
-0
73 additions, 0 deletions
patches/packman-0.5.0.patch
with
73 additions
and
0 deletions
patches/packman-0.5.0.patch
0 → 100644
+
73
−
0
View file @
09e32ab0
diff --git a/cbits/Pack.c b/cbits/Pack.c
index 2c73161e..27007c2a 100644
--- a/cbits/Pack.c
+++ b/cbits/Pack.c
@@ -56,7 +56,13 @@
#define true rtsTrue
#define false rtsFalse
#endif
-
+// the story goes on
+#if __GLASGOW_HASKELL__ >= 806
+#define SMALL_MUT_ARR_PTRS_FROZEN0 SMALL_MUT_ARR_PTRS_FROZEN_DIRTY
+#define SMALL_MUT_ARR_PTRS_FROZEN SMALL_MUT_ARR_PTRS_FROZEN_CLEAN
+#define MUT_ARR_PTRS_FROZEN0 MUT_ARR_PTRS_FROZEN_DIRTY
+#define MUT_ARR_PTRS_FROZEN MUT_ARR_PTRS_FROZEN_CLEAN
+#endif
#ifdef DEBUG
#define DBG_HEADROOM 1
@@ -529,7 +535,7 @@
getClosureInfo(StgClosure* node, StgInfoTable* info,
// We remove the potential tag before doing anything.
node = UNTAG_CLOSURE(node);
-
+
if (info == NULL) {
// Supposed to compute info table by ourselves. This will go very wrong
// if we use an info _offset_ instead (if we are supposed to look at a
@@ -930,7 +936,7 @@
loop:
case CONSTR_NOCAF:
// While it should be OK to execute the code below in older
- // GHCs, the new type is not, and we separate it to make
+ // GHCs, the new type is not, and we separate it to make
// differences apparent.
if (!HEAP_ALLOCED(closure)) {
@@ -1082,7 +1088,7 @@
loop:
// In GUM, we would globalise and pack a FetchMe.
#endif
// Without global addresses and virtual shared heap, packing
- // just fails, an error code is returned to Haskell.
+ // just fails, an error code is returned to Haskell.
// Likewise in library code: would be good to just block on the
// blackhole, but there is no way to return to the scheduler.
PACKETDEBUG(debugBelch("packing hit a %s at %p (returning).\n",
@@ -2285,7 +2291,7 @@
StgClosure* createBH(Capability *cap) {
SET_HDR(new, &stg_BLACKHOLE_info, CCS_SYSTEM); // ccs to be checked!
- new->payload[0] = (StgClosure*) &stg_system_tso;
+ new->payload[0] = (StgClosure*) &stg_system_tso;
// see above. Pseudo-TSO (has TSO info pointer) owning all
// system-created black holes, and storing BQs.
@@ -2326,7 +2332,7 @@
StgClosure* createListNode(Capability *cap, StgClosure *head, StgClosure *tail)
/* this array has to be kept in sync with includes/ClosureTypes.h.
* For backwards compatibility of packman, changes need to be worked in
* via CPP (or multipurpose code where possible).
- *
+ *
* Changes are identified by minor version, we cannot be more precise than
* that, but non-released version numbers (odd minor version) are included.
*
@@ -2586,7 +2592,7 @@
print:
graphFingerPrint_(fp, visited, (StgClosure *) (p));
if (strlen(fp)+2 < MAX_FINGER_PRINT_LEN) {
StgWord bitmap;
- const StgFunInfoTable *funInfo
+ const StgFunInfoTable *funInfo
= get_fun_itbl(UNTAG_CLOSURE(p));
strcat(fp, "|");
switch (funInfo->f.fun_type) {
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment