[Oberon] garbage collector

Patrik Reali reali at acm.org
Fri May 23 09:03:48 CEST 2003


Well, the command depends on the system you're using. Look in the modules
Oberon, System, or Kernel for commands or flags with GC in their name.

Untraced pointer are pointers that are not registered to the garbage
collector (also called weak pointers in other languages). These pointers are
not traversed by the garbage collector when marking the reachable memory
blocks. An untraced pointer won't keep a memory block alive!

-Patrik

----- Original Message ----- 
From: "hurlimann" <hurlimann at medixa.com>
To: <oberon at inf.ethz.ch>
Sent: Thursday, May 22, 2003 7:46 PM
Subject: Re: [Oberon] garbage collector


>
> Dear Patrik
> With with command can I disable and enable the GC?
> What ist the difference between normal pointers and untraced ones?
> Greting
> Bruno
>
> ---------- Urspruengliche Nachricht ----------------------------------
> Von: "Patrik Reali" <reali at acm.org>
> Antworten: oberon at inf.ethz.ch
> Datum:  Tue, 20 May 2003 11:05:18 +0200
>
> You have two options:
>
> 1. disable and enable the GC by hand (this could kill the system, if you
use
> a lot of memory)
> 2. allocate a memory block (with SYSTEM.NEW) and do whatever you want with
> its contents
>
> You should only use untraced pointers in this block. Using normal pointers
> could (and probably will) crash the GC.
>
> -Patrik
>
> ----- Original Message ----- 
> From: "hurlimann" <hurlimann at medixa.com>
> To: "_Oberon user group" <oberon at inf.ethz.ch>
> Sent: Monday, May 19, 2003 11:29 PM
> Subject: [Oberon] garbage collector
>
>
> >
> > Whether it gives a possibility to make the garbage collector manually by
> programm an not automatic?
> >
> > Greetings
> > Bruno Hürlimann
> >
> > --
> > Oberon at inf.ethz.ch mailing list for ETH Oberon and related systems
> > http://www.lists.inf.ethz.ch/mailman/listinfo/oberon
> >
> >
>
> --
> Oberon at inf.ethz.ch mailing list for ETH Oberon and related systems
> http://www.lists.inf.ethz.ch/mailman/listinfo/oberon
>
>
> --
> Oberon at inf.ethz.ch mailing list for ETH Oberon and related systems
> http://www.lists.inf.ethz.ch/mailman/listinfo/oberon
>
>




More information about the Oberon mailing list