Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [CDO][0.8.0] Concurrency
[CDO][0.8.0] Concurrency [message #106101] Fri, 04 January 2008 10:34 Go to next message
Eclipse UserFriend
I updating our prodcution system with the latest version of CDO.
(we are still using the version from october)

I'm going through all the changes we've made... and it is funny that we
found the same fixes at many places.

One of them.. we have almost the same change.

The problem with CDOViewImpl.getObject() its that we need to put
synchronization around lastLookup and when we assign the lastLookup

if (id.equals(lastLookupID))
{
<< CONTEXT COULD SWITCH HERE !!!
return lastLookupObject;
}

Let me know what you think.


Re: [CDO][0.8.0] Concurrency [message #106170 is a reply to message #106101] Fri, 04 January 2008 12:27 Go to previous message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

Simon,

That's a good idea. I was too eager with sparing synced statements ;-(
https://bugs.eclipse.org/bugs/show_bug.cgi?id=214370

Regards,
Eike Stepper
----
http://wiki.eclipse.org/CDO
http://wiki.eclipse.org/Net4j



Simon McDuff schrieb:
> I updating our prodcution system with the latest version of CDO.
> (we are still using the version from october)
>
> I'm going through all the changes we've made... and it is funny that we
> found the same fixes at many places.
>
> One of them.. we have almost the same change.
>
> The problem with CDOViewImpl.getObject() its that we need to put
> synchronization around lastLookup and when we assign the lastLookup
>
> if (id.equals(lastLookupID))
> {
> << CONTEXT COULD SWITCH HERE !!!
> return lastLookupObject;
> }
>
> Let me know what you think.
>
>
>
Re: [CDO][0.8.0] Concurrency [message #613918 is a reply to message #106101] Fri, 04 January 2008 12:27 Go to previous message
Eclipse UserFriend
Simon,

That's a good idea. I was too eager with sparing synced statements ;-(
https://bugs.eclipse.org/bugs/show_bug.cgi?id=214370

Regards,
Eike Stepper
----
http://wiki.eclipse.org/CDO
http://wiki.eclipse.org/Net4j



Simon McDuff schrieb:
> I updating our prodcution system with the latest version of CDO.
> (we are still using the version from october)
>
> I'm going through all the changes we've made... and it is funny that we
> found the same fixes at many places.
>
> One of them.. we have almost the same change.
>
> The problem with CDOViewImpl.getObject() its that we need to put
> synchronization around lastLookup and when we assign the lastLookup
>
> if (id.equals(lastLookupID))
> {
> << CONTEXT COULD SWITCH HERE !!!
> return lastLookupObject;
> }
>
> Let me know what you think.
>
>
>
Previous Topic:[Compare] using separate model resource sets for left/right/ancestor
Next Topic:[CDO][0.8.0] Problem with OutOfMemory
Goto Forum:
  


Current Time: Fri Jun 13 04:07:16 EDT 2025

Powered by FUDForum. Page generated in 0.03908 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top