The Source for Java Technology Collaboration
User: Password:



Mark Lam's Blog

Mark Lam Mark Lam was previously a virtual machine engineer in the JavaME CDC team at Sun Microsystems for 8 years. Before joining Sun, he was a real-time embedded systems developer for 6+ years, working on application frameworks, graphics systems, networking protocols, game development, and fault tolerant systems amongst other things, on devices ranging from 64KB 8bit uControllers to 32-bit RISC machines. Currently, Mark is pursuing other interests in embedded development.



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

August 2008
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            


Search this blog:
  

Categories
Community: Embedded Java
Community: Mobile & Embedded
J2ME
Performance
Porting
Programming
Testing
Tools
Virtual Machine
Archives

June 2008
March 2008
September 2007
August 2007
July 2007
June 2007
April 2007
February 2007
January 2007
December 2006
November 2006

Recent Entries

CVM Object Allocation

Not at Sun anymore

JVMTI in Multi-tasking VMs (MVM)



Powered by
Movable Type 3.01D


 Feed java.net RSS Feeds