Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 15:34 Go to next message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
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 17: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 17:27 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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 Apr 19 10:08:04 GMT 2024

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

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

Back to the top