mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Documentation enhancement
This commit is contained in:
parent
598295599b
commit
d4d9d8d5cc
1 changed files with 10 additions and 3 deletions
|
@ -1131,9 +1131,16 @@ public class AbstractCachingVMProvider extends AbstractVMProvider
|
|||
properties = entry.fProperties;
|
||||
properties.putAll(getData());
|
||||
|
||||
// Make sure that all the properties that were requested by the user are in the
|
||||
// properties map. Otherwise, we'll never get a cache hit because the cache
|
||||
// test makes sure that all keys that are requested are in the properties map.
|
||||
// Make sure that all the properties that were
|
||||
// requested by the update object are in the
|
||||
// cache entry's properties map. It's possible the
|
||||
// ViewerDataRequestMonitor was able to provide
|
||||
// us only a subset of the requested ones. We
|
||||
// want to prevent that from causing future
|
||||
// cache misses, since a cache hit requires the
|
||||
// cache entry to contain all requested
|
||||
// properties. Use a null value for the missing
|
||||
// items.
|
||||
for (String updateProperty : update.getProperties()) {
|
||||
if (!properties.containsKey(updateProperty)) {
|
||||
properties.put(updateProperty, null);
|
||||
|
|
Loading…
Add table
Reference in a new issue