{"id":84328,"date":"2020-12-28T09:22:24","date_gmt":"2020-12-28T00:22:24","guid":{"rendered":"https:\/\/www.softantenna.com\/wp\/?p=84328"},"modified":"2020-12-28T09:22:24","modified_gmt":"2020-12-28T00:22:24","slug":"google-chrome-terminal-process","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/google-chrome-terminal-process\/","title":{"rendered":"Google Chrome\u306e\u6700\u5927\u306e\u6b20\u9665\u304c\u4fee\u6b63\u3078"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2020\/12\/s_20201226_100508.jpg\" alt=\"S 20201226 100508\" title=\"s_20201226_100508.jpg\" border=\"0\" width=\"860\" height=\"560\" \/><\/p>\n<p>Windows\u7248\u306eChrome\u3067\u306f\u3001RAM\u3092\u5927\u91cf\u306b\u4f7f\u7528\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u304c\u4e0d\u5b89\u5b9a\u306b\u306a\u308b\u3068\u3044\u3046\u5927\u304d\u306a\u554f\u984c\u304c\u5831\u544a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Google\u306f\u30bb\u30b0\u30e1\u30f3\u30c8\u30d2\u30fc\u30d7\u306b\u5909\u308f\u308b\u65b0\u305f\u306a\u30e1\u30e2\u30ea\u7ba1\u7406\u624b\u6cd5\u300cParitionAlloc-Everywhere\u300d\u3092\u5c0e\u5165\u3057\u3001RAM\u4f7f\u7528\u91cf\u3092\u524a\u6e1b\u3059\u308b\u8a08\u753b\u3092\u7acb\u3066\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u540c\u6642\u306b\u9032\u3081\u3089\u308c\u3066\u3044\u308b\u300cTerminateProcess\u300d\u306e\u5c0e\u5165\u3082Chrome\u304c\u4f7f\u7528\u3059\u308b\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306e\u524a\u6e1b\u306b\u52b9\u679c\u304c\u3042\u308b\u3068\u306e\u6307\u6458\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3059(<a href=\"https:\/\/mspoweruser.com\/chrome-tries-a-new-way-to-free-up-ram-better\/\">MSPoweruser<\/a>)\u3002<\/p>\n<p>4GB\u307e\u305f\u306f8GB\u7a0b\u5ea6\u306eRAM\u3057\u304b\u642d\u8f09\u3057\u3066\u3044\u306a\u3044Windows 10\u30c7\u30d0\u30a4\u30b9\u3067\u306f\u3001Chrome\u304c\u5fdc\u7b54\u3057\u306a\u304f\u306a\u3063\u305f\u308a\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u304c\u30af\u30e9\u30c3\u30b7\u30e5\u3057\u305f\u308a\u3068\u3044\u3063\u305f\u73fe\u8c61\u304c\u767a\u751f\u3057\u304c\u3061\u3067\u3057\u305f\u3002\u307e\u305f\u8907\u6570\u306e\u30bf\u30d6\u3092\u958b\u3044\u305f\u307e\u307e\u9577\u6642\u9593\u306e\u4f5c\u696d\u3092\u884c\u3063\u305f\u3042\u3068\u30d6\u30e9\u30a6\u30b6\u3092\u9589\u3058\u3066\u3082\u30b7\u30b9\u30c6\u30e0\u30ea\u30bd\u30fc\u30b9\u3092\u6d88\u8cbb\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u304c\u6b8b\u3063\u305f\u307e\u307e\u306b\u306a\u3063\u3066\u3044\u305f\u5834\u5408\u3082\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u73fe\u8c61\u306e\u539f\u56e0\u3068\u3057\u3066\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u7d42\u4e86\u51e6\u7406\u304c\u5b8c\u5168\u306b\u6210\u529f\u3057\u3066\u304a\u3089\u305a\u3001\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u30ea\u30bd\u30fc\u30b9\u304c\u78ba\u4fdd\u3055\u308c\u305f\u307e\u307e\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u7406\u7531\u306e1\u3064\u3068\u3057\u3066\u8003\u3048\u3089\u308c\u307e\u3059\u3002\u3053\u306e\u3082\u306a\u3044\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306bTerminateProcess\u306e\u5c0e\u5165\u3092Google\u304c\u9032\u3081\u3066\u3044\u308b\u306e\u3067\u3059\u3002<\/p>\n<p>TerminateProcess\u306f\u3001Windows\u3067\u6307\u5b9a\u3057\u305f\u30d7\u30ed\u30bb\u30b9\u3068\u305d\u306e\u3059\u3079\u3066\u306e\u30b9\u30ec\u30c3\u30c9\u3092\u7121\u6761\u4ef6\u306b\u7d42\u4e86\u3055\u305b\u308b\u305f\u3081\u306b\u7528\u3044\u3089\u308c\u308b\u95a2\u6570\u3067\u3059\u3002TerminateProcess\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u8907\u96d1\u306a\u7d42\u4e86\u51e6\u7406\u3092\u884c\u308f\u306a\u304f\u3066\u3082Chrome\u7d42\u4e86\u6642\u306b\u30ea\u30bd\u30fc\u30b9\u304c\u9069\u5207\u306b\u958b\u653e\u3055\u308c\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u30ea\u30bd\u30fc\u30b9\u6d88\u8cbb\u91cf\u304c\u5c11\u306a\u304f\u306a\u308b\u3053\u3068\u304c\u671f\u5f85\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>Google\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b<a href=\"https:\/\/chromium-review.googlesource.com\/c\/chromium\/src\/+\/2598043\">\u8aac\u660e<\/a>\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote><p>Exiting a process cleanly is difficult and expensive. Avoiding race conditions becomes almost impossible with complex software and a clean exit can be quite slow. Waiting on all threads, paging in code and data, and race conditions make it not worthwhile.<\/p>\n<p>\u30d7\u30ed\u30bb\u30b9\u3092\u30af\u30ea\u30fc\u30f3\u306b\u7d42\u4e86\u3059\u308b\u3053\u3068\u306f\u96e3\u3057\u304f\u30b3\u30b9\u30c8\u3082\u304b\u304b\u308a\u307e\u3059\u3002\u7af6\u5408\u72b6\u614b\u3092\u56de\u907f\u3059\u308b\u3053\u3068\u306f\u8907\u96d1\u306a\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u306f\u307b\u3068\u3093\u3069\u4e0d\u53ef\u80fd\u3067\u3001\u30af\u30ea\u30fc\u30f3\u306a\u7d42\u4e86\u306f\u975e\u5e38\u306b\u9045\u304f\u306a\u308a\u307e\u3059\u3002\u3059\u3079\u3066\u306e\u30b9\u30ec\u30c3\u30c9\u3067\u5f85\u6a5f\u3057\u305f\u308a\u3001\u30b3\u30fc\u30c9\u3084\u30c7\u30fc\u30bf\u306e\u30da\u30fc\u30b8\u30f3\u30b0\u3092\u884c\u3063\u305f\u308a\u3001\u7af6\u5408\u72b6\u614b\u306b\u306a\u3063\u305f\u308a\u3059\u308b\u3068\u3001\u3042\u307e\u308a\u610f\u5473\u304c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>We have been gradually moving towards using TerminateProcess for more process types. Although the majority of the shutdown processes tracked by this bug are in utility processes this change uses TerminateProcess for all process types. We should not need to let destructors run so it should be safe to never use exit() (or to make it opt-in).<\/p>\n<p>\u3088\u308a\u591a\u304f\u306e\u30d7\u30ed\u30bb\u30b9\u30bf\u30a4\u30d7\u306bTerminateProcess\u3092\u4f7f\u7528\u3059\u308b\u65b9\u5411\u306b\u5f90\u3005\u306b\u79fb\u884c\u3057\u3066\u304d\u307e\u3057\u305f\u3002\u3053\u306e\u30d0\u30b0\u306b\u3088\u3063\u3066\u8ffd\u8de1\u3055\u308c\u308b\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u30d7\u30ed\u30bb\u30b9\u306e\u5927\u90e8\u5206\u306f\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30d7\u30ed\u30bb\u30b9\u306b\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u5909\u66f4\u3067\u306f\u3059\u3079\u3066\u306e\u30d7\u30ed\u30bb\u30b9\u30bf\u30a4\u30d7\u306bTerminateProcess\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u5b9f\u884c\u3055\u305b\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u6c7a\u3057\u3066 exit() \u3092\u4f7f\u7528\u3057\u306a\u3044\u3053\u3068\u304c\u5b89\u5168\u306a\u306f\u305a\u3067\u3059 (\u307e\u305f\u306f\u3001\u30aa\u30d7\u30c8\u30a4\u30f3\u306b\u3059\u308b\u3053\u3068)\u3002\n<\/p><\/blockquote>\n<p>\u3053\u306e\u5909\u66f4\u304c\u6709\u52b9\u306b\u306a\u308b\u6b21\u671f\u306f\u4e0d\u660e\u3067\u3059\u304c\u3001\u8907\u6570\u306e\u30bf\u30d6\u3084\u30d6\u30e9\u30a6\u30b6\u5168\u4f53\u3092\u9589\u3058\u3066\u3082 RAM\u4f7f\u7528\u91cf\u304c\u5909\u308f\u3089\u306a\u3044\u3068\u3044\u3046\u554f\u984c\u3092\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u308b\u3068\u898b\u8fbc\u307e\u308c\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows\u7248\u306eChrome\u3067\u306f\u3001RAM\u3092\u5927\u91cf\u306b\u4f7f\u7528\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u304c\u4e0d\u5b89\u5b9a\u306b\u306a\u308b\u3068\u3044\u3046\u5927\u304d\u306a\u554f\u984c\u304c\u5831\u544a\u3055\u308c\u3066\u3044\u307e\u3059\u3002 Google\u306f\u30bb\u30b0\u30e1\u30f3\u30c8\u30d2\u30fc\u30d7\u306b\u5909\u308f\u308b\u65b0\u305f\u306a\u30e1\u30e2\u30ea\u7ba1\u7406\u624b\u6cd5\u300cParitionAlloc-Everywh [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":84330,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[101],"class_list":["post-84328","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-google"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/84328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=84328"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/84328\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/84330"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=84328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=84328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=84328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}