Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
73eb728f
Commit
73eb728f
authored
Aug 02, 2001
by
ken
Browse files
[project @ 2001-08-02 15:33:35 by ken]
Some 64-bit fixes for the new GC code.
parent
c746737f
Changes
3
Hide whitespace changes
Inline
Side-by-side
ghc/rts/GC.c
View file @
73eb728f
/* -----------------------------------------------------------------------------
* $Id: GC.c,v 1.11
1
2001/0
7/30 12:54:12 simonmar
Exp $
* $Id: GC.c,v 1.11
2
2001/0
8/02 15:33:35 ken
Exp $
*
* (c) The GHC Team 1998-1999
*
...
...
@@ -40,7 +40,6 @@
#if defined(RTS_GTK_FRONTPANEL)
#include
"FrontPanel.h"
#endif
#include
<stddef.h>
/* STATIC OBJECT LIST.
*
...
...
ghc/rts/GCCompact.c
View file @
73eb728f
/* -----------------------------------------------------------------------------
* $Id: GCCompact.c,v 1.
5
2001/0
7/30 12:57:01 simonmar
Exp $
* $Id: GCCompact.c,v 1.
6
2001/0
8/02 15:33:35 ken
Exp $
*
* (c) The GHC Team 2001
*
...
...
@@ -173,7 +173,7 @@ thread_stack(StgPtr p, StgPtr stack_end)
{
StgPtr
q
;
const
StgInfoTable
*
info
;
StgWord
32
bitmap
;
StgWord
bitmap
;
// highly similar to scavenge_stack, but we do pointer threading here.
...
...
@@ -213,7 +213,7 @@ thread_stack(StgPtr p, StgPtr stack_end)
p
++
;
continue
;
// small bitmap (< 32 entries, or 64 on a 64-bit machine)
// small bitmap (<
=
32 entries, or 64 on a 64-bit machine)
case
UPDATE_FRAME
:
case
STOP_FRAME
:
case
CATCH_FRAME
:
...
...
@@ -234,7 +234,7 @@ thread_stack(StgPtr p, StgPtr stack_end)
}
continue
;
// large bitmap (> 32 entries)
// large bitmap (> 32 entries
, or 64 on a 64-bit machine
)
case
RET_BIG
:
case
RET_VEC_BIG
:
{
...
...
@@ -247,7 +247,7 @@ thread_stack(StgPtr p, StgPtr stack_end)
for
(
i
=
0
;
i
<
large_bitmap
->
size
;
i
++
)
{
bitmap
=
large_bitmap
->
bitmap
[
i
];
q
=
p
+
sizeof
(
W_
)
*
8
;
q
=
p
+
BITS_IN
(
W_
)
;
while
(
bitmap
!=
0
)
{
if
((
bitmap
&
1
)
==
0
)
{
thread
(
p
);
...
...
ghc/rts/StoragePriv.h
View file @
73eb728f
/* -----------------------------------------------------------------------------
* $Id: StoragePriv.h,v 1.1
5
2001/0
7/23 17:23:20 simonmar
Exp $
* $Id: StoragePriv.h,v 1.1
6
2001/0
8/02 15:33:35 ken
Exp $
*
* (c) The GHC Team, 1998-1999
*
...
...
@@ -10,6 +10,8 @@
#ifndef STORAGEPRIV_H
#define STORAGEPRIV_H
#include
<stddef.h>
#define END_OF_STATIC_LIST stgCast(StgClosure*,1)
extern
generation
*
generations
;
...
...
@@ -21,7 +23,7 @@ extern generation *oldest_gen;
extern
void
newCAF
(
StgClosure
*
);
extern
void
move_TSO
(
StgTSO
*
src
,
StgTSO
*
dest
);
extern
StgTSO
*
relocate_stack
(
StgTSO
*
dest
,
in
t
diff
);
extern
StgTSO
*
relocate_stack
(
StgTSO
*
dest
,
ptrdiff_
t
diff
);
extern
StgClosure
*
static_objects
;
extern
StgClosure
*
scavenged_static_objects
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment