CDT Commit Report for - June 19, 2004

amagloire

Fix for PR 66108

2004-06-18 Alain Magloire

This was heavy and lots of files were change. The problem: to create the CElementInfo we use
to synchronize of the CModelManager singleton instance, this was handy and allowed us to serialize
the creation of the proxy info and save in the LRU cache. Then came Eclipse-3.0 with job spawning
everywhere, lots of deadlock since the CModelManager was lock and the singleton is the center
to get all the info. We use the same scheme as the JDT by using a ThreadLocal class cache
to collect the information. We fixed a couple of bug allong the way and probably introduce some.

The tests were doing something stupid, by creating directly the TranslationUnit:
new TranslationUnit(project, file);
This does not work since only the sourceRoot can be the parent
of a TranslationUnit, the tests are now fix bug we should restrict access of the class in the core model
after 2.0.

2004-06-18 Alain Magloire
- The call CCorePlugin.getCDescriptor(..) seems to return null.
This should be fix but meanwhile give the indexer a break by catching it.