The Source for Java Technology Collaboration
User: Password:



Mark Lam's Blog

June 2008 Archives


CVM Object Allocation

Posted by mlam on June 16, 2008 at 10:29 PM | Permalink | Comments (1)

In a previous comment, Jamsheed asked, ...

"In CDC we have garbage collection invocation for fast lock contention case (From my understanding this is done for rolling the object allocation unsafe thread to gcsafe). My question is why should we invoke a gc call for reaching safe point while this can be achieved by simply making try heap lock a blocking lock in gc safe window(with slight modification to gc safe window). Or by polling try heaplock with safe point after every iteration."

Jamsheed, I presume that you are referring to the piece of allocation code that requests that all threads to reach a GC safe state. You're probably thinking that this is a rather slow operation, and that there are cheaper alternatives. So, why do this?

Here's why ...

Continue Reading...



Not at Sun anymore

Posted by mlam on June 16, 2008 at 01:06 AM | Permalink | Comments (4)

Tonight, I noticed that there were a few inquiries posted (back in May) as comments on some of my old entries. I apologize for not bring able to respond since I didn't know about them until now. Well, I left Sun back in April '08, and for some reason, the blog email notification wasn't redirected to my new email.

Anyway, for what it's worth, Jamsheed and hkpottyn, when I get a chance in the next few days, I'll try to give you an answer to the extent that I can. I don't work on CVM anymore, but I'd be happy to share my knowledge as before ... again, to the extent that I can, of course. Since, I don't work on CVM anymore, my knowledge may soon be obsoleted.

Regards,
Mark



Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds