Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Carl Shapiro
cmucl
Commits
dd9dbef1
Commit
dd9dbef1
authored
33 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Added RT support for gc_trigger_hit.
parent
08f07276
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
ldb/interrupt.c
+18
-5
18 additions, 5 deletions
ldb/interrupt.c
with
18 additions
and
5 deletions
ldb/interrupt.c
+
18
−
5
View file @
dd9dbef1
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/interrupt.c,v 1.2
5
1991/0
4/27 22:40:48
wlott Exp $ */
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/interrupt.c,v 1.2
6
1991/0
5/05 02:21:17
wlott Exp $ */
/* Interrupt handing magic. */
...
...
@@ -595,8 +595,17 @@ static boolean gc_trigger_hit(context)
#endif
#ifdef ibmrt
/* ### Don't know where to look on the RT. */
badaddr
=
NULL
;
if
(
!
SymbolValue
(
PSEUDO_ATOMIC_ATOMIC
))
/* If we are not pseudo-atomic, then we could only have hit the */
/* trigger if the allocation pointer points beyond the trigger. */
badaddr
=
(
lispobj
*
)
SymbolValue
(
ALLOCATION_POINTER
);
else
/* Otherwise, we might be inside an allocator. The best we can do */
/* is to try turning off the trigger and seeing if the problem goes */
/* away. If it does, then we guessed right. If it doesn't, we will */
/* end up back here, except current_auto_gc_trigger will be NULL, */
/* so we will take the sigbus at that time. */
return
TRUE
;
#endif
return
(
badaddr
>=
current_auto_gc_trigger
&&
...
...
@@ -658,19 +667,23 @@ int (*handler)();
sv
.
sv_handler
=
sigtrap_handler
;
else
if
(
signal
==
SIGFPE
)
sv
.
sv_handler
=
sigfpe_handler
;
else
if
(
signal
==
SIGBUS
||
signal
==
SIGSEGV
)
sv
.
sv_handler
=
sigbus_handler
;
#endif
#ifdef sparc
if
(
signal
==
SIGILL
)
sv
.
sv_handler
=
sigill_handler
;
else
if
(
signal
==
SIGEMT
)
sv
.
sv_handler
=
sigemt_handler
;
else
if
(
signal
==
SIGBUS
)
sv
.
sv_handler
=
sigbus_handler
;
#endif
#ifdef ibmrt
if
(
signal
==
SIGTRAP
)
sv
.
sv_handler
=
sigtrap_handler
;
#endif
else
if
(
signal
==
SIGBUS
||
signal
==
SIGSEGV
)
else
if
(
signal
==
SIGBUS
)
sv
.
sv_handler
=
sigbus_handler
;
#endif
else
if
(
handler
==
SIG_DFL
||
handler
==
SIG_IGN
)
sv
.
sv_handler
=
handler
;
else
if
(
sigmask
(
signal
)
&
BLOCKABLE
)
...
...
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