Re: [rvm-research] How to record objects' read/write times

王晨曦 <[email protected]>
Newsgroups gmane.comp.java.jikes.rvm.devel
Message-ID <CAECgty_0koCQUUJqWNwD4-uTvQDt_iJ5ckctwyB1WepwUYf_ag@mail.gmail.com>
Hi,Robin

Thank you for your help very much!!   I have confirmed what you have
said. I can get most of them.
But I still have some doubts that I can't understand.


>
>> 1)
>> So,my first  doubt is   I can't find which variable to describe the
>> "the nursery size is set to 1/2 the available heap size ".
>> I mean the program set which variable to control this ?
>> May be the nursery size is set as the min of the range
>> (fixedNursery.value) ,and round to the max size (boundedNursery.value)
>> when the program is running ?
>
> Look at the method Plan#getPagesReserved().

1)
I have read this function, I think this function is about to get the
current reserved pages. I can't find its connection with the Nursery's
initial size in GenImmix.

But I really have seen that the nursery's initial size is 16M, half of
the nursery's max size( default max size is 32M).


>
> No, all spaces dynamically resize, but they don't change their virtual
> memory.  When we use a nursery in high memory, the base virtual address
> of the nursery is fixed at build time.  When we talk about "resizing"
> spaces, we simply mean using more or less of the space that has been set
> aside.
>

2)
I have read the functions about how to manage the nursery space
(GenImmix config).
In my opinion ,The nursery is a MonotonePageResource , and the nursery
space is allocated in the top of the heap.
But,when allocate pages ,the nursery's allocator will start from the
nursery's  low address ( Monotone.cursor / nursery.start ) to the heap
end ( Monotone.sentinel ).
And the nursery's virtual memory will not be occupied by other
discontiguous space,even if the nursery only use little of it.

Are these right?



Than you !


-- 
ChenXi.Wang

------------------------------------------------------------------------------
_______________________________________________
Jikesrvm-researchers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.