[rvm-research] about the lock() in freelist

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

   I'm reading the codes about  how  immix get blocks from the  freelist.
But I have some doubts about the lock() use in the
FreeListPageResource.java /allocPages()

such as :

    lock();
    boolean newChunk = false;


I can't understand that is this lock()  used to synchronize the immix
mutator threads or to synchronize the all the discontiguous spaces'
mutator threads at this point.
I think the free list is shared by all discontiguous space. So I think
the free list need to synchronize
all the spaces thread.

Any response is useful.
Thank you.


-- 
ChenXi.Wang

------------------------------------------------------------------------------
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.