Type:
Task
Priority:
Major
Resolution:
Fixed
pool->threads is freed before being reassigned the new pool.
Although not really a memory barrier I though it prudent to keep the pool thread count to be the lower of the old/new thread list before the new threads is allocated.
Patch refers
{"report":{"fcp":728,"ttfb":137.30000019073486,"pageVisibility":"visible","entityId":49121,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"1c6d8f4c-215c-4483-81ba-f146de28a20c","navigationType":0,"readyForUser":799.8000001907349,"redirectCount":0,"resourceLoadedEnd":471.30000019073486,"resourceLoadedStart":146.60000014305115,"resourceTiming":[{"duration":5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":146.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":146.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":151.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":6.799999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":146.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":146.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":153.70000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":187.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":147,"connectEnd":153.90000009536743,"connectStart":153.90000009536743,"domainLookupEnd":153.90000009536743,"domainLookupStart":153.90000009536743,"fetchStart":147,"redirectEnd":0,"redirectStart":0,"requestStart":154.5,"responseEnd":334.60000014305115,"responseStart":169.30000019073486,"secureConnectionStart":153.90000009536743},{"duration":300.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":147.70000004768372,"connectEnd":147.70000004768372,"connectStart":147.70000004768372,"domainLookupEnd":147.70000004768372,"domainLookupStart":147.70000004768372,"fetchStart":147.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":155,"responseEnd":448.60000014305115,"responseStart":175.5,"secureConnectionStart":147.70000004768372},{"duration":25.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":147.90000009536743,"connectEnd":147.90000009536743,"connectStart":147.90000009536743,"domainLookupEnd":147.90000009536743,"domainLookupStart":147.90000009536743,"fetchStart":147.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":155.60000014305115,"responseEnd":173.80000019073486,"responseStart":170.60000014305115,"secureConnectionStart":147.90000009536743},{"duration":34.700000047683716,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":147.90000009536743,"connectEnd":147.90000009536743,"connectStart":147.90000009536743,"domainLookupEnd":147.90000009536743,"domainLookupStart":147.90000009536743,"fetchStart":147.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":156,"responseEnd":182.60000014305115,"responseStart":174.40000009536743,"secureConnectionStart":147.90000009536743},{"duration":39.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":148,"connectEnd":148,"connectStart":148,"domainLookupEnd":148,"domainLookupStart":148,"fetchStart":148,"redirectEnd":0,"redirectStart":0,"requestStart":159.70000004768372,"responseEnd":187.10000014305115,"responseStart":183.20000004768372,"secureConnectionStart":148},{"duration":8.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":148.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":148.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":156.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":40.799999952316284,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":148.20000004768372,"connectEnd":148.20000004768372,"connectStart":148.20000004768372,"domainLookupEnd":148.20000004768372,"domainLookupStart":148.20000004768372,"fetchStart":148.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":163,"responseEnd":189,"responseStart":185.20000004768372,"secureConnectionStart":148.20000004768372},{"duration":10.700000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":148.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":148.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":159.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":41.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":148.40000009536743,"connectEnd":148.40000009536743,"connectStart":148.40000009536743,"domainLookupEnd":148.40000009536743,"domainLookupStart":148.40000009536743,"fetchStart":148.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":163.80000019073486,"responseEnd":190.30000019073486,"responseStart":185.90000009536743,"secureConnectionStart":148.40000009536743},{"duration":319,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":151,"connectEnd":151,"connectStart":151,"domainLookupEnd":151,"domainLookupStart":151,"fetchStart":151,"redirectEnd":0,"redirectStart":0,"requestStart":195.10000014305115,"responseEnd":470,"responseStart":460,"secureConnectionStart":151},{"duration":320.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":151.10000014305115,"connectEnd":151.10000014305115,"connectStart":151.10000014305115,"domainLookupEnd":151.10000014305115,"domainLookupStart":151.10000014305115,"fetchStart":151.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":195.30000019073486,"responseEnd":471.30000019073486,"responseStart":462.60000014305115,"secureConnectionStart":151.10000014305115},{"duration":216.70000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":484.40000009536743,"connectEnd":484.40000009536743,"connectStart":484.40000009536743,"domainLookupEnd":484.40000009536743,"domainLookupStart":484.40000009536743,"fetchStart":484.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":661.2000000476837,"responseEnd":701.1000001430511,"responseStart":700.3000001907349,"secureConnectionStart":484.40000009536743},{"duration":189,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":720.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":720.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":909.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":201.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":742.7000000476837,"connectEnd":742.7000000476837,"connectStart":742.7000000476837,"domainLookupEnd":742.7000000476837,"domainLookupStart":742.7000000476837,"fetchStart":742.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":910.9000000953674,"responseEnd":944.2000000476837,"responseStart":942.3000001907349,"secureConnectionStart":742.7000000476837}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":4,"responseStart":137,"responseEnd":151,"domLoading":141,"domInteractive":887,"domContentLoadedEventStart":887,"domContentLoadedEventEnd":932,"domComplete":1265,"loadEventStart":1265,"loadEventEnd":1266,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":831.7000000476837},{"name":"bigPipe.sidebar-id.end","time":832.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":832.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":833.6000001430511},{"name":"activityTabFullyLoaded","time":945.7000000476837}],"measures":[],"correlationId":"573a491b467747","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":74,"dbReadsTimeInMs":13,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Hm. As you say, due to no barriers this doesn't actually make any semantic
change. But ok, if you think it makes the code clearer, it doesn't hurt
anything, so I'll push it to 10.1.