Title: Bad hash code calculation in `PSMethodInvocationConstraints` results in explosion of static cache · Issue #24964 · PowerShell/PowerShell · GitHub
Open Graph Title: Bad hash code calculation in `PSMethodInvocationConstraints` results in explosion of static cache · Issue #24964 · PowerShell/PowerShell
X Title: Bad hash code calculation in `PSMethodInvocationConstraints` results in explosion of static cache · Issue #24964 · PowerShell/PowerShell
Description: The hash code calculation in PSMethodInvocationConstraints only counts in the array members but not their elements, so the returned hash code would be different for two PSMethodInvocationConstraints instances that hold exactly the same e...
Open Graph Description: The hash code calculation in PSMethodInvocationConstraints only counts in the array members but not their elements, so the returned hash code would be different for two PSMethodInvocationConstraint...
X Description: The hash code calculation in PSMethodInvocationConstraints only counts in the array members but not their elements, so the returned hash code would be different for two PSMethodInvocationConstraint...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/24964
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bad hash code calculation in `PSMethodInvocationConstraints` results in explosion of static cache","articleBody":"The hash code calculation in `PSMethodInvocationConstraints` only counts in the array members but not their elements, so the returned hash code would be different for two `PSMethodInvocationConstraints` instances that hold exactly the same elements in their array members.\n\nThe hash code of `PSMethodInvocationConstraints` is used by the static cache `PSInvokeMemberBinder.s_binderCache` because `PSMethodInvocationConstraints` is a member of the key for that cache, so you end up with every request being a cache miss in `PSInvokeMemberBinder.s_binderCache`.\n\nhttps://github.com/PowerShell/PowerShell/blob/8f1d1115f28f652248ca23295041938e6ed3d2a1/src/System.Management.Automation/engine/MshMemberInfo.cs#L2012","author":{"url":"https://github.com/crazyjncsu","@type":"Person","name":"crazyjncsu"},"datePublished":"2025-02-06T21:22:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/24964/PowerShell/issues/24964"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:177e64c4-66a1-da50-d599-308032eb5d61 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D9F0:2BB762:20163CE:2C2C6A7:6A548DEF |
| html-safe-nonce | 9f1e255fef7639c682148c413a2fdde8a082af240eb77f6ec1cdae0d52160d01 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUYwOjJCQjc2MjoyMDE2M0NFOjJDMkM2QTc6NkE1NDhERUYiLCJ2aXNpdG9yX2lkIjoiMTk5NzYyOTcxMTA5MDc0ODkxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e23f4220d7ade98292b3f2bf7816f55b6d52f4699a503a03e86a4a7173838d80 |
| hovercard-subject-tag | issue:2836640495 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/24964/issue_layout |
| twitter:image | https://opengraph.githubassets.com/79992965a5798cb725d1a2265d9538a53345c6c49ec1ef105e6be989e4683e28/PowerShell/PowerShell/issues/24964 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/79992965a5798cb725d1a2265d9538a53345c6c49ec1ef105e6be989e4683e28/PowerShell/PowerShell/issues/24964 |
| og:image:alt | The hash code calculation in PSMethodInvocationConstraints only counts in the array members but not their elements, so the returned hash code would be different for two PSMethodInvocationConstraint... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | crazyjncsu |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width