News for hackers. Stuff that matters.
Re:Linear Address Spaces: Unsafe at any speed by kazinator on Wednesday June 29, 2022 @06:55PM (#31926711)
Real segmentation would have solved the problem described in the article. Under virtual memory segments like on the 80386 (and mainframes before that), you can physically relocate a segment and while adjusting its descriptor so that the addressing doesn't change.

The problem was mainly caused by having no MMU, so moving around objects in order to save space required adjusting pointers. Today, a copying garbage collector will do the same thing; rewrite all the links among the moved objects. You'd have similar hacks on Apple Macintoshes, with their MC68K processors and flat space, like doubly indirected objeccts managed by "handles" and whatnot.

Re:Linear Address Spaces: Unsafe at any speed by StillBored on Friday July 01, 2022 @01:26PM (#31949737)
The 386 segmentation system exists above the paging portion of the MMU, so it is possible to move them around without physically copying memory (or adjusting the segment+offset).

Here is a somewhat reasonable diagram of how it all works

https://stackoverflow.com/questions/4039325/assembly-segment...

(although i'm probably agreeing with you)