Skip to content

Nouveau fixes - #6096

Open
rnewson wants to merge 5 commits into
mainfrom
nouveau-fixes
Open

Nouveau fixes#6096
rnewson wants to merge 5 commits into
mainfrom
nouveau-fixes

Conversation

@rnewson

@rnewson rnewson commented Aug 18, 2026

Copy link
Copy Markdown
Member

Overview

Selection of small fixes

Testing recommendations

covered by existing tests, these changes have no visible effect.

Related Issues or Pull Requests

N/A

Checklist

  • This is my own work, I did not use AI, LLM's or similar technology
  • Code is written and works correctly
  • Changes are covered by tests
  • Any new configurable parameters are documented in rel/overlay/etc/default.ini
  • Documentation changes were made in the src/docs folder
  • Documentation changes were backported (separated PR) to affected branches

}

searcherManager.maybeRefreshBlocking();
if (searcherManagerStale.getAndSet(false)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems racy if say after an update? A first search call triggers getAndSet(false) but then a concurrent, second search won't block anymore even if the first one hadn't finished updating?


private final ConcurrentMap<String, Type> map;

private final ConcurrentMap<Locale, Map<String, PointsConfig>> pointsConfigCache = new ConcurrentHashMap<>();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is caching a locale => number format instances to share between client calls?

Since it seem to be shared I checked https://lucene.apache.org/core/10_5_0/queryparser/org/apache/lucene/queryparser/flexible/standard/config/PointsConfig.html and it doesn't mention any synchronization safety but the number format warns about using them in different threads https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/text/NumberFormat.html#synchronization maybe it need a lock or if you looked and think it's fine it's ok. I am just going by superficial impressions and docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants