micronaut-projects / micronaut-core

Micronaut Application Framework
http://micronaut.io
Apache License 2.0
6k stars 1.04k forks source link

Fix some instance check type pollution #10893

Closed yawkat closed 3 weeks ago

yawkat commented 3 weeks ago

Measured using https://github.com/RedHatPerf/type-pollution-agent in the techempower benchmarks.

This patch fixes some of the instanceof type pollution that could cause scalability issues with many CPUs, and also some instanceof misses that are less problematic but still worth avoiding.

sonarcloud[bot] commented 3 weeks ago

Quality Gate Failed Quality Gate failed

Failed conditions
2 New Bugs (required ≤ 0)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint