|
From: <bst...@jb...> - 2006-06-23 18:53:55
|
IMHO, a flat heap *improves* locking semantics by making them more like standard java locking. E.g. in standard Java if you have a Person with a sub-object Address. One thread has a ref to the Address; another thread has a ref to the Person. If the 2nd thread synchronizes on the Person, that doesn't prevent the 1st thread updating the Address. PojoCache would prevent an update to the Address if the Person has been updated. But, AFAICT, only sometimes! If Address is stored in /husband/address, an update to /husband locks address. But an update to /wife with an indirect ref to /husband/address doesn't lock the Address. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953107#3953107 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953107 |