Skip to content
Snippets Groups Projects
Commit 1975d13a authored by dtc's avatar dtc
Browse files

Use a separate stack for alien value allocation on the x86. It had

been sharing the control stack with the compiler which could cause
trouble (pushes and pops out of order, holes in arguments built up on
the stack, exposed stack that can be written over on interrupt, etc)

Assigned a static symbol, x86::*alien-stack*, and by default set it to
the old C stack. A program many rebind this if it needs more room or
wants the allocation elsewhere.

The *alien-stack* is saved with the dynamic environment so is restored
with a non-local exist. It's not save on function entry/exit so you
need to take care to match an allocation with a deallocation.

Makes use of new VOPs which are already in place.

Backout an old alien stack deallocation hack.
parent 6d8260e5
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment