Click here to Skip to main content
14,636,685 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: rebooting my cable modem: why? Pin
AReady1-Apr-20 23:57
MemberAReady1-Apr-20 23:57 
GeneralRe: rebooting my cable modem: why? Pin
Member 79891222-Apr-20 1:10
MemberMember 79891222-Apr-20 1:10 
GeneralRe: rebooting my cable modem: why? Pin
AReady2-Apr-20 9:31
MemberAReady2-Apr-20 9:31 
GeneralRe: rebooting my cable modem: why? Pin
Greg Utas31-Mar-20 10:28
professionalGreg Utas31-Mar-20 10:28 
GeneralRe: rebooting my cable modem: why? Pin
Member 79891221-Apr-20 7:35
MemberMember 79891221-Apr-20 7:35 
GeneralRe: rebooting my cable modem: why? Pin
Greg Utas1-Apr-20 7:47
professionalGreg Utas1-Apr-20 7:47 
GeneralRe: rebooting my cable modem: why? Pin
obermd31-Mar-20 16:30
Memberobermd31-Mar-20 16:30 
GeneralRe: rebooting my cable modem: why? Pin
Member 79891221-Apr-20 8:00
MemberMember 79891221-Apr-20 8:00 
Even garbage collection may leave the heap with external fragmentation. If you want GC to leave a heap with no external fragmentation, either the GC must trace every pointer update in all software, which is rather intrusive. In languages allow casting between pointer and non-pointer types, the task of tracing e.g. the use of an integer that has received a (int)pointer value is non-trivial.

Or you must add another level of indirection for all heap access: The code "pointer" is really an index (or "handle") into a pointer table, the only place where the actual heap pointer is found. This strategy is used in some systems, like for some Windows structures, and, I believe, JVM. This adds a (small) execution overhead, but the biggest problem is that it is poorly fit for systems manipulating addresses directly, such as C/C++ pointer arithmetic.

In some old architectures, now more or less completely forgotten, indirect memory addressing was directly supported by hardware. One of the few that enjoyed a (short, very short!) commercial life was the Intel 432 CPU. In the 1980s, there was a whole crowd of experimental, one-of-a-kind, such "capability based" machines. Typically, the pointer table also had a lot of access control flags etc., and could support virtual memory. (Sometimes, I wish that Intel brushed up that 432 architecture so that it could be used in modern systems - it did have a number of interesting features!)

The primary task of GC is to detect inaccessible memory block blocks to have them freed, and to combine neighboring free blocks into a single larger one. Packing memory blocks comes as an extra.
GeneralRe: rebooting my cable modem: why? Pin
dandy7231-Mar-20 10:38
Memberdandy7231-Mar-20 10:38 
GeneralRe: rebooting my cable modem: why? Pin
raddevus31-Mar-20 11:54
mvaraddevus31-Mar-20 11:54 
JokeRe: rebooting my cable modem: why? Pin
Dar Brett1-Apr-20 0:48
MemberDar Brett1-Apr-20 0:48 
GeneralRe: rebooting my cable modem: why? Pin
dandy721-Apr-20 3:19
Memberdandy721-Apr-20 3:19 
GeneralRe: rebooting my cable modem: why? Pin
W Balboos, GHB1-Apr-20 5:16
mveW Balboos, GHB1-Apr-20 5:16 
GeneralRe: rebooting my cable modem: why? Pin
Member 79891221-Apr-20 7:05
MemberMember 79891221-Apr-20 7:05 
GeneralRe: rebooting my cable modem: why? Pin
Member 79891221-Apr-20 8:29
MemberMember 79891221-Apr-20 8:29 
GeneralRe: rebooting my cable modem: why? Pin
dandy721-Apr-20 9:18
Memberdandy721-Apr-20 9:18 
GeneralRe: rebooting my cable modem: why? Pin
GenJerDan31-Mar-20 21:23
MemberGenJerDan31-Mar-20 21:23 
GeneralRe: rebooting my cable modem: why? Pin
Member 1470818631-Mar-20 22:03
MemberMember 1470818631-Mar-20 22:03 
GeneralRe: rebooting my cable modem: why? Pin
RDM Jr31-Mar-20 23:58
MemberRDM Jr31-Mar-20 23:58 
GeneralRe: rebooting my cable modem: why? Pin
raddevus1-Apr-20 4:03
mvaraddevus1-Apr-20 4:03 
GeneralRe: rebooting my cable modem: why? Pin
Member 79891221-Apr-20 8:32
MemberMember 79891221-Apr-20 8:32 
GeneralRe: rebooting my cable modem: why? Pin
raddevus1-Apr-20 4:02
mvaraddevus1-Apr-20 4:02 
GeneralRe: rebooting my cable modem: why? Pin
Member 79891221-Apr-20 7:07
MemberMember 79891221-Apr-20 7:07 
GeneralRe: rebooting my cable modem: why? Pin
Dar Brett1-Apr-20 1:01
MemberDar Brett1-Apr-20 1:01 
GeneralRe: rebooting my cable modem: why? Pin
Peter Shaw1-Apr-20 1:39
professionalPeter Shaw1-Apr-20 1:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.