[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GC questions
Date: Fri, 22 Feb 91 10:41:05
From: moon%brazil.cambridge.apple.com@ztivax (David A. Moon)
> Date: Fri, 22 Feb 91 14:55+0100
> From: toni%l4@ztivax.siemens.com (Anton Beschta)
>
> Question 3:
> Is there a way to change the gc behavior of an area from :static to
> :dynamic or are there implementation dependent or theoretical reasons
> which makes this impossible?
>
> The documentation claims that make-area is the way to dynamically change
> characteristics of areas. Once more I weren't successful.
The documented way to do this works. To get help you'd have to be more
specific about exactly what you did, exactly what happened, and exactly
what version of the software you are running.
You're right. I wasn't very specific in my message. To my excuse I have
to say that it was a Friday afternoon hack and I was in a hurry.
I'm working on a 3640 under Genera 8.0.
The goal was to change the gc characteristic of TV:BIT-ARRAY-AREA to
:dynamic to make it subject of incremental gc. This area is defined by
(DEFVAR TV:BIT-ARRAY-AREA
(MAKE-AREA :NAME 'TV:BIT-ARRAY-AREA
:GC :STATIC
:SWAP-RECOMMENDATIONS 31. ;; maximum
:REGION-SIZE 1000000.))
and it describes as follows
(describe-area tv:bit-array-area)
Area #42: TV:BIT-ARRAY-AREA has 2 regions, region size 3700000 (octal):
Region #116: Origin 42400000, Length 100000, Free 75106, GC 75106, New Structure, Swapin 37, Scav Static
Region #253: Origin 50000000, Length 3700000, Free 1152512, GC 1150644, New Structure, Swapin 37, Scav Static
New Structure space: 1,048,576 allocated, 348,048 used.
Total for TV:BIT-ARRAY-AREA: 1,048,576 allocated, 348,048 used.
To change the gc characteristics I tried
(SETQ TV:BIT-ARRAY-AREA
(MAKE-AREA :NAME 'TV:BIT-ARRAY-AREA
:GC :DYNAMIC
:SWAP-RECOMMENDATIONS 31. ;; maximum
:REGION-SIZE 1000000.))
But describing this area again shows no change.
(describe-area tv:bit-array-area)
Area #42: TV:BIT-ARRAY-AREA has 2 regions, region size 3700000 (octal):
Region #116: Origin 42400000, Length 100000, Free 75106, GC 75106, New Structure, Swapin 37, Scav Static
Region #253: Origin 50000000, Length 3700000, Free 1152512, GC 1150644, New Structure, Swapin 37, Scav Static
New Structure space: 1,048,576 allocated, 348,048 used.
Total for TV:BIT-ARRAY-AREA: 1,048,576 allocated, 348,048 used.
Where is the mistake? That's the question.
-Toni