Click here to Skip to main content
15,887,746 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
AReady1-Apr-20 23:57 
GeneralRe: rebooting my cable modem: why? Pin
kalberts2-Apr-20 1:10
kalberts2-Apr-20 1:10 
GeneralRe: rebooting my cable modem: why? Pin
AReady2-Apr-20 9:31
AReady2-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
kalberts1-Apr-20 7:35
kalberts1-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
obermd31-Mar-20 16:30 
GeneralRe: rebooting my cable modem: why? Pin
kalberts1-Apr-20 8:00
kalberts1-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
dandy7231-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
Dar Brett1-Apr-20 0:48 
GeneralRe: rebooting my cable modem: why? Pin
dandy721-Apr-20 3:19
dandy721-Apr-20 3:19 
GeneralRe: rebooting my cable modem: why? Pin
W Balboos, GHB1-Apr-20 5:16
W Balboos, GHB1-Apr-20 5:16 
GeneralRe: rebooting my cable modem: why? Pin
kalberts1-Apr-20 7:05
kalberts1-Apr-20 7:05 
GeneralRe: rebooting my cable modem: why? Pin
kalberts1-Apr-20 8:29
kalberts1-Apr-20 8:29 
GeneralRe: rebooting my cable modem: why? Pin
dandy721-Apr-20 9:18
dandy721-Apr-20 9:18 
GeneralRe: rebooting my cable modem: why? Pin
GenJerDan31-Mar-20 21:23
GenJerDan31-Mar-20 21:23 
GeneralRe: rebooting my cable modem: why? Pin
Member 1470818631-Mar-20 22:03
Member 1470818631-Mar-20 22:03 
GeneralRe: rebooting my cable modem: why? Pin
RDM Jr31-Mar-20 23:58
RDM 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
kalberts1-Apr-20 8:32
kalberts1-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
kalberts1-Apr-20 7:07
kalberts1-Apr-20 7:07 
GeneralRe: rebooting my cable modem: why? Pin
Dar Brett1-Apr-20 1:01
Dar 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.