Repository navigation
Expand file tree
/
Copy pathfree-threading-python.po
More file actions
560 lines (493 loc) · 29.1 KB
/
Copy pathfree-threading-python.po
File metadata and controls
560 lines (493 loc) · 29.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# python-doc bot, 2025
# Inada Naoki <songofacandy@gmail.com>, 2026
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-10-25 17:19+0000\n"
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
"Last-Translator: Inada Naoki <songofacandy@gmail.com>, 2026\n"
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
"ja/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ja\n"
"Plural-Forms: nplurals=1; plural=0;\n"
msgid "Python support for free threading"
msgstr "Python のフリースレッド対応"
msgid ""
"Starting with the 3.13 release, CPython has support for a build of Python "
"called :term:`free threading` where the :term:`global interpreter lock` "
"(GIL) is disabled. Free-threaded execution allows for full utilization of "
"the available processing power by running threads in parallel on available "
"CPU cores. While not all software will benefit from this automatically, "
"programs designed with threading in mind will run faster on multi-core "
"hardware."
msgstr ""
"CPython 3.13 から、:term:`global interpreter lock` (GIL) を無効にし"
"た :term:`free threading` という Python のビルドがサポートされています。\n"
"フリースレッド実行では、利用可能な CPU コアでスレッドを並列に動かし、処理能力"
"を十分に活用できます。\n"
"すべてのソフトウェアが自動的に恩恵を受けるわけではありませんが、スレッドの利"
"用を考慮して設計されたプログラムは、マルチコアのハードウェア上でより速く動作"
"します。"
msgid ""
"Some third-party packages, in particular ones with an :term:`extension "
"module`, may not be ready for use in a free-threaded build, and will re-"
"enable the :term:`GIL`."
msgstr ""
"一部のサードパーティーパッケージ、特に :term:`extension module` を含むもの"
"は、フリースレッドビルドへの対応ができておらず、:term:`GIL` を再び有効にする"
"場合があります。"
msgid ""
"This document describes the implications of free threading for Python code. "
"See :ref:`freethreading-extensions-howto` for information on how to write C "
"extensions that support the free-threaded build."
msgstr ""
"このドキュメントでは、フリースレッドが Python コードに与える影響を説明しま"
"す。\n"
"フリースレッドビルドに対応した C 拡張の書き方は、:ref:`freethreading-"
"extensions-howto` を参照してください。"
msgid ""
":pep:`703` – Making the Global Interpreter Lock Optional in CPython for an "
"overall description of free-threaded Python."
msgstr ""
"フリースレッドの Python の全体的な説明は、:pep:`703` — Making the Global "
"Interpreter Lock Optional in CPython を参照してください。"
msgid "Installation"
msgstr "インストール"
msgid ""
"Starting with Python 3.13, the official macOS and Windows installers "
"optionally support installing free-threaded Python binaries. The installers "
"are available at https://www.python.org/downloads/."
msgstr ""
"Python 3.13 から、macOS と Windows の公式インストーラでは、フリースレッド版 "
"Python のバイナリを追加でインストールできます。\n"
"インストーラは https://www.python.org/downloads/ から入手できます。"
msgid ""
"For information on other platforms, see the `Installing a Free-Threaded "
"Python <https://py-free-threading.github.io/installing-cpython/>`_, a "
"community-maintained installation guide for installing free-threaded Python."
msgstr ""
"ほかのプラットフォームについては、コミュニティが保守しているフリースレッド版 "
"Python のインストールガイド、`Installing a Free-Threaded Python <https://py-"
"free-threading.github.io/installing-cpython/>`_ を参照してください。"
msgid ""
"When building CPython from source, the :option:`--disable-gil` configure "
"option should be used to build a free-threaded Python interpreter."
msgstr ""
"CPython をソースからビルドする場合、フリースレッドの Python インタープリタを"
"作るには configure の :option:`--disable-gil` オプションを使います。"
msgid "Identifying free-threaded Python"
msgstr "フリースレッド版 Python の識別"
msgid ""
"To check if the current interpreter supports free-threading, :option:`python "
"-VV <-V>` and :data:`sys.version` contain \"free-threading build\". The "
"new :func:`sys._is_gil_enabled` function can be used to check whether the "
"GIL is actually disabled in the running process."
msgstr ""
"実行中のインタープリタがフリースレッドに対応しているかは、:option:`python "
"-VV <-V>` の出力や :data:`sys.version` に \"free-threading build\" が含まれる"
"かで確認できます。\n"
"新しい :func:`sys._is_gil_enabled` 関数では、実行中のプロセスで GIL が実際に"
"無効になっているかを確認できます。"
msgid ""
"The ``sysconfig.get_config_var(\"Py_GIL_DISABLED\")`` configuration variable "
"can be used to determine whether the build supports free threading. If the "
"variable is set to ``1``, then the build supports free threading. This is "
"the recommended mechanism for decisions related to the build configuration."
msgstr ""
"``sysconfig.get_config_var(\"Py_GIL_DISABLED\")`` 設定変数でも、ビルドがフ"
"リースレッドに対応しているかを確認できます。\n"
"値が ``1`` なら対応しています。\n"
"ビルド構成に関する判断には、この方法を使うことが推奨されます。"
msgid "The global interpreter lock in free-threaded Python"
msgstr "フリースレッド版 Python のグローバルインタープリタロック"
msgid ""
"Free-threaded builds of CPython support optionally running with the GIL "
"enabled at runtime using the environment variable :envvar:`PYTHON_GIL` or "
"the command-line option :option:`-X gil`."
msgstr ""
"CPython のフリースレッドビルドでは、:envvar:`PYTHON_GIL` 環境変数また"
"は :option:`-X gil` コマンドラインオプションを使い、実行時に GIL を有効にする"
"こともできます。"
msgid ""
"The GIL may also automatically be enabled when importing a C-API extension "
"module that is not explicitly marked as supporting free threading. A "
"warning will be printed in this case."
msgstr ""
"フリースレッド対応が明示されていない C API 拡張モジュールをインポートすると、"
"GIL が自動的に有効になることもあります。\n"
"この場合は警告が表示されます。"
msgid ""
"In addition to individual package documentation, the following websites "
"track the status of popular packages support for free threading:"
msgstr ""
"個々のパッケージのドキュメントに加え、次のウェブサイトでも、よく使われるパッ"
"ケージのフリースレッド対応状況を確認できます。"
msgid "https://py-free-threading.github.io/tracking/"
msgstr "https://py-free-threading.github.io/tracking/"
msgid "https://hugovk.github.io/free-threaded-wheels/"
msgstr "https://hugovk.github.io/free-threaded-wheels/"
msgid "Thread safety"
msgstr "スレッド安全性"
msgid ""
"The free-threaded build of CPython aims to provide similar thread-safety "
"behavior at the Python level to the default GIL-enabled build. Built-in "
"types like :class:`dict`, :class:`list`, and :class:`set` use internal locks "
"to protect against concurrent modifications in ways that behave similarly to "
"the GIL. See :ref:`threadsafety` for the guarantees provided by built-in "
"types."
msgstr ""
"CPython のフリースレッドビルドは、Python レベルでは、デフォルトの GIL が有効"
"なビルドと同様のスレッド安全性を提供することを目指しています。\n"
":class:`dict`、:class:`list`、:class:`set` などの組み込み型は内部ロックを使"
"い、GIL と似た動作で並行する変更から保護します。\n"
"組み込み型が提供する保証については、:ref:`threadsafety` を参照してください。"
msgid ""
"It's recommended to use the :class:`threading.Lock` or other synchronization "
"primitives instead of relying on the internal locks of built-in types, when "
"possible."
msgstr ""
"可能であれば、組み込み型の内部ロックに頼る代わりに、:class:`threading.Lock` "
"などの同期プリミティブを使うことが推奨されます。"
msgid "Known limitations"
msgstr "既知の制限"
msgid ""
"This section describes known limitations of the free-threaded CPython build."
msgstr "この節では、CPython のフリースレッドビルドの既知の制限を説明します。"
msgid "Immortalization"
msgstr "不死化"
msgid ""
"In the free-threaded build, some objects are :term:`immortal`. Immortal "
"objects are not deallocated and have reference counts that are never "
"modified. This is done to avoid reference count contention that would "
"prevent efficient multi-threaded scaling."
msgstr ""
"フリースレッドビルドでは、一部のオブジェクトが :term:`immortal` になりま"
"す。\n"
"不死のオブジェクトは解放されず、参照カウントも変更されません。\n"
"これは、効率的なマルチスレッドでの性能向上を妨げる、参照カウントの競合を避け"
"るためです。"
msgid "As of the 3.14 release, immortalization is limited to:"
msgstr "3.14 リリース時点では、不死化されるものは次に限られます。"
msgid ""
"Code constants: numeric literals, string literals, and tuple literals "
"composed of other constants."
msgstr ""
"コード内の定数: 数値リテラル、文字列リテラル、ほかの定数からなるタプルリテラ"
"ル。"
msgid "Strings interned by :func:`sys.intern`."
msgstr ":func:`sys.intern` でインターンされた文字列。"
#: ../../howto/free-threading-python.rst:112
msgid "Frame objects"
msgstr "フレーム (frame) オブジェクト"
msgid ""
"It is not safe to access :attr:`frame.f_locals` from a :ref:`frame <frame-"
"objects>` object if that frame is currently executing in another thread, and "
"doing so may crash the interpreter."
msgstr ""
"別のスレッドで実行中の :ref:`フレーム <frame-objects>` オブジェクト"
"の :attr:`frame.f_locals` にアクセスするのは安全ではなく、インタープリタがク"
"ラッシュする可能性があります。"
#: ../../howto/free-threading-python.rst:120
msgid "Iterators"
msgstr "イテレータ (iterator)"
msgid ""
"It is generally not thread-safe to access the same iterator object from "
"multiple threads concurrently, and threads may see duplicate or missing "
"elements."
msgstr ""
"一般に、同じイテレータオブジェクトに複数のスレッドから並行してアクセスするこ"
"とは、スレッドセーフではありません。\n"
"要素が重複して取得されたり、取得できない要素が出たりする可能性があります。"
msgid "Single-threaded performance"
msgstr "シングルスレッドの性能"
msgid ""
"The free-threaded build has additional overhead when executing Python code "
"compared to the default GIL-enabled build. The amount of overhead depends "
"on the workload and hardware. On the pyperformance benchmark suite, the "
"average overhead ranges from about 1% on macOS aarch64 to 8% on x86-64 Linux "
"systems."
msgstr ""
"フリースレッドビルドは、デフォルトの GIL が有効なビルドに比べ、Python コード"
"の実行に追加のオーバーヘッドがあります。\n"
"その大きさはワークロードとハードウェアに依存します。\n"
"pyperformance ベンチマークスイートでは、平均のオーバーヘッドは macOS aarch64 "
"の約 1% から x86-64 Linux の約 8% までの範囲です。"
msgid "Behavioral changes"
msgstr "動作の違い"
msgid ""
"This section describes CPython behavioural changes with the free-threaded "
"build."
msgstr ""
"この節では、フリースレッドビルドによる CPython の動作の違いを説明します。"
msgid "Context variables"
msgstr "コンテキスト変数"
msgid ""
"In the free-threaded build, the "
"flag :data:`~sys.flags.thread_inherit_context` is set to true by default "
"which causes threads created with :class:`threading.Thread` to start with a "
"copy of the :class:`~contextvars.Context()` of the caller "
"of :meth:`~threading.Thread.start`. In the default GIL-enabled build, the "
"flag defaults to false so threads start with an "
"empty :class:`~contextvars.Context()`."
msgstr ""
"フリースレッドビルドでは、:data:`~sys.flags.thread_inherit_context` フラグは"
"デフォルトで真です。\n"
"そのため、:class:`threading.Thread` で作られたスレッド"
"は、:meth:`~threading.Thread.start` の呼び出し元"
"の :class:`~contextvars.Context()` のコピーを持って開始します。\n"
"デフォルトの GIL が有効なビルドでは、このフラグはデフォルトで偽なので、スレッ"
"ドは空の :class:`~contextvars.Context()` で開始します。"
msgid "Warning filters"
msgstr "警告フィルタ"
msgid ""
"In the free-threaded build, the "
"flag :data:`~sys.flags.context_aware_warnings` is set to true by default. "
"In the default GIL-enabled build, the flag defaults to false. If the flag "
"is true then the :class:`warnings.catch_warnings` context manager uses a "
"context variable for warning filters. If the flag is false "
"then :class:`~warnings.catch_warnings` modifies the global filters list, "
"which is not thread-safe. See the :mod:`warnings` module for more details."
msgstr ""
"フリースレッドビルドでは、:data:`~sys.flags.context_aware_warnings` フラグは"
"デフォルトで真です。\n"
"デフォルトの GIL が有効なビルドでは、偽になっています。\n"
"真の場合、:class:`warnings.catch_warnings` コンテキストマネージャは、警告フィ"
"ルタにコンテキスト変数を使います。\n"
"偽の場合、:class:`~warnings.catch_warnings` はグローバルなフィルタのリストを"
"変更するため、スレッドセーフではありません。\n"
"詳しくは :mod:`warnings` モジュールを参照してください。"
msgid "Increased memory usage"
msgstr "メモリ使用量の増加"
msgid ""
"The free-threaded build will typically use more memory compared to the "
"default build. There are multiple reasons for this, mostly due to design "
"decisions."
msgstr ""
"フリースレッドビルドは、通常、デフォルトのビルドより多くのメモリを使いま"
"す。\n"
"理由はいくつかあり、その多くは設計上の判断によるものです。"
msgid "All interned strings are immortal"
msgstr "インターンされた文字列はすべて不死になる"
msgid ""
"For modern Python versions (since version 2.3), interning a string (e.g. "
"with :func:`sys.intern`) does not cause it to become immortal. Instead, if "
"the last reference to that string disappears, it will be removed from the "
"interned string table. This is not the case for the free-threaded build and "
"any interned string will become immortal, surviving until interpreter "
"shutdown."
msgstr ""
"Python 2.3 以降では、:func:`sys.intern` などで文字列をインターンしても、不死"
"にはなりません。\n"
"その文字列への最後の参照がなくなると、インターン済み文字列のテーブルから削除"
"されます。\n"
"フリースレッドビルドではこれとは異なり、インターンされた文字列はすべて不死に"
"なり、インタープリタの終了まで生存します。"
msgid "Non-GC objects have a larger object header"
msgstr "GC の対象でないオブジェクトのヘッダが大きくなる"
msgid ""
"The free-threaded build uses a different :c:type:`PyObject` structure. "
"Instead of having the GC related information allocated before "
"the :c:type:`PyObject` structure, like in the default build, the GC related "
"info is part of the normal object header. For example, on the AMD64 "
"platform, ``None`` uses 32 bytes on the free-threaded build vs 16 bytes for "
"the default build. GC objects (such as dicts and lists) are the same size "
"for both builds since the free-threaded build does not use additional space "
"for the GC info."
msgstr ""
"フリースレッドビルドは、異なる :c:type:`PyObject` 構造体を使います。\n"
"デフォルトのビルドのように GC 関連の情報を :c:type:`PyObject` 構造体の前に配"
"置するのではなく、通常のオブジェクトヘッダの一部にしています。\n"
"例えば AMD64 プラットフォームでは、``None`` はフリースレッドビルドで 32 バイ"
"ト、デフォルトのビルドでは 16 バイトを使います。\n"
"辞書やリストなど、GC 対象のオブジェクトのサイズは両ビルドで同じです。\n"
"フリースレッドビルドでは、GC 情報のために別の領域を使わないためです。"
msgid "QSBR can delay freeing of memory"
msgstr "QSBR によってメモリの解放が遅れることがある"
msgid ""
"In order to safely implement lock-free data structures, a safe memory "
"reclamation (SMR) scheme is used, known as quiescent state-based reclamation "
"(QSBR). This means that the memory backing data structures allowing lock-"
"free access will use QSBR, which defers the free operation, rather than "
"immediately freeing the memory. Two examples of these data structures are "
"the list object and the dictionary keys object. See ``InternalDocs/"
"qsbr.md`` in the CPython source tree for more details on how QSBR is "
"implemented. Running :func:`gc.collect` should cause all memory being held "
"by QSBR to be actually freed. Note that even when QSBR frees the memory, "
"the underlying memory allocator may not immediately return that memory to "
"the OS and so the resident set size (RSS) of the process might not decrease."
msgstr ""
"ロックを使わないデータ構造を安全に実装するため、quiescent state-based "
"reclamation (QSBR) という安全なメモリ回収 (SMR) の方式を使います。\n"
"ロックなしのアクセスを許すデータ構造の領域には QSBR が使われ、メモリはすぐに"
"は解放されず、解放が遅延されます。\n"
"例として、リストオブジェクトや辞書のキーオブジェクトがあります。\n"
"QSBR の実装の詳細は、CPython ソースツリーの ``InternalDocs/qsbr.md`` を参照し"
"てください。\n"
":func:`gc.collect` を実行すると、QSBR によって保持されているメモリはすべて解"
"放されるはずです。\n"
"ただし、QSBR がメモリを解放しても、下位のメモリアロケータがすぐに OS へ返すと"
"は限らず、プロセスの常駐メモリ量 (RSS) が減らない場合があります。"
msgid "mimalloc allocator vs pymalloc"
msgstr "mimalloc と pymalloc の比較"
msgid ""
"The default build will normally use the \"pymalloc\" memory allocator for "
"small allocations (512 bytes or smaller). The free-threaded build does not "
"use pymalloc and allocates all Python objects using the \"mimalloc\" "
"allocator. The pymalloc allocator has the following properties that help "
"keep memory usage low: small per-allocated-block overhead, effective memory "
"fragmentation prevention, and quick return of free memory to the operating "
"system. The mimalloc allocator does quite well in these respects as well "
"but can have some more overhead."
msgstr ""
"デフォルトのビルドは通常、512 バイト以下の小さな割り当てに pymalloc メモリア"
"ロケータを使います。\n"
"フリースレッドビルドは pymalloc を使わず、すべての Python オブジェクトを "
"mimalloc で割り当てます。\n"
"pymalloc には、割り当てブロックごとのオーバーヘッドが小さい、メモリの断片化を"
"効果的に防ぐ、未使用メモリを速やかに OS へ返すといった、メモリ使用量を抑える"
"特性があります。\n"
"mimalloc もこれらの点で優れていますが、オーバーヘッドがやや大きい場合がありま"
"す。"
msgid ""
"In the free-threaded build, mimalloc manages memory in a number of separate "
"heaps (currently four). For example, all GC supporting objects are "
"allocated from their own heap. Using separate heaps means that free memory "
"in one heap cannot be used for an allocation that uses another heap. Also, "
"some heaps are configured to use QSBR (quiescent-state based reclamation) "
"when freeing the memory that backs up the heap (known as \"pages\" in "
"mimalloc terminology). The use of QSBR creates a delay between all memory "
"blocks for a page being freed and the memory page being released, either for "
"new allocations or back to the OS."
msgstr ""
"フリースレッドビルドでは、mimalloc は複数の独立したヒープ (現在は 4 つ) でメ"
"モリを管理します。\n"
"例えば、GC に対応するオブジェクトはすべて専用のヒープから割り当てられます。\n"
"ヒープを分けると、あるヒープの空きメモリを別のヒープからの割り当てに使うこと"
"はできません。\n"
"また、一部のヒープでは、ヒープの基盤となるメモリ領域 (mimalloc の用語で「ペー"
"ジ」) の解放に QSBR (quiescent-state based reclamation) を使います。\n"
"そのため、ページ内の全メモリブロックが解放されてから、そのページが新しい割り"
"当てに使えるようになるか OS へ返されるまでに、遅延が生じます。"
msgid ""
"The mimalloc allocator also defers returning freed memory back to the OS. "
"You can reduce that delay by setting the environment variable :envvar:`!"
"MIMALLOC_PURGE_DELAY` to ``0``. Note that this will likely reduce the "
"performance of the allocator."
msgstr ""
"mimalloc も、解放されたメモリを OS に返すまでに遅延を設けています。\n"
":envvar:`!MIMALLOC_PURGE_DELAY` 環境変数を ``0`` に設定すると、この遅延を短く"
"できます。\n"
"ただし、アロケータの性能が低下する可能性が高いことに注意してください。"
msgid "Free-threaded reference counting can cause objects to live longer"
msgstr "フリースレッドの参照カウントではオブジェクトの寿命が延びることがある"
msgid ""
"In the default build, when an object's reference count reaches zero, it is "
"normally deallocated. The free-threaded build uses \"biased reference "
"counting\", with a fast-path for objects \"owned\" by the current thread and "
"a slow path for other objects. See :pep:`703` for additional details. Any "
"time an object's reference count ends up in a \"queued\" state, deallocation "
"can be deferred. The queued state is cleared from the \"eval breaker\" "
"section of the bytecode evaluator."
msgstr ""
"デフォルトのビルドでは、通常、参照カウントがゼロになるとオブジェクトが解放さ"
"れます。\n"
"フリースレッドビルドは「バイアス参照カウント」を使い、現在のスレッドが「所有"
"する」オブジェクトには高速な処理経路、それ以外には低速な経路を使います。\n"
"詳しくは :pep:`703` を参照してください。\n"
"参照カウントが queued (キュー待ち) 状態になると、解放が遅延することがありま"
"す。\n"
"キュー待ち状態は、バイトコード評価器の eval breaker 部分で解除されます。"
msgid ""
"The free-threaded build also allows a different mode of reference counting, "
"known as \"deferred reference counting\". This mode is enabled by setting a "
"flag on a per-object basis. Deferred reference counting is enabled for the "
"following types:"
msgstr ""
"フリースレッドビルドでは、「遅延参照カウント」という別の方式も使えます。\n"
"これはオブジェクトごとにフラグを設定して有効にします。\n"
"次の型で遅延参照カウントが有効になっています。"
msgid "module objects"
msgstr "モジュールオブジェクト"
msgid "module top-level functions"
msgstr "モジュールのトップレベルの関数"
msgid "class methods defined in the class scope"
msgstr "クラススコープで定義されたメソッド"
msgid "descriptor objects"
msgstr "デスクリプタオブジェクト"
msgid "thread-local objects, created by :class:`threading.local`"
msgstr ":class:`threading.local` で作られたスレッドローカルオブジェクト"
msgid ""
"When deferred reference counting is enabled, references from Python function "
"stacks are not added to the reference count. This scheme reduces the "
"overhead of reference counting, especially for objects used from multiple "
"threads. Because the stack references are not counted, objects with deferred "
"reference counting are not immediately freed when their internal reference "
"count goes to zero. Instead, they are examined by the next GC run and, if "
"no stack references to them are found, they are freed. This means these "
"objects are freed by the GC and not when their reference count goes to zero, "
"as is typical."
msgstr ""
"遅延参照カウントを有効にすると、Python 関数のスタックからの参照は参照カウント"
"に加算されません。\n"
"この方式は、特に複数のスレッドから使われるオブジェクトについて、参照カウント"
"のオーバーヘッドを減らします。\n"
"スタックからの参照を数えないため、内部の参照カウントがゼロになっても、オブ"
"ジェクトはすぐには解放されません。\n"
"代わりに、次回の GC で調べられ、スタックからの参照がなければ解放されます。\n"
"つまり、通常のように参照カウントがゼロになった時点ではなく、GC によって解放さ"
"れます。"
msgid "Per-thread reference counting can delay freeing objects"
msgstr "スレッドごとの参照カウントによってオブジェクトの解放が遅れることがある"
msgid ""
"To avoid contention on the reference count fields of frequently shared "
"objects, the free-threaded build also uses \"per-thread reference counting\" "
"for a few selected object types. Rather than updating a single shared "
"reference count, each thread maintains its own local reference count array, "
"indexed by a unique id assigned to the object. The true reference count is "
"only computed by summing the per-thread counts when the object's local count "
"drops to zero. Per-thread reference counting is currently used for:"
msgstr ""
"頻繁に共有されるオブジェクトの参照カウントフィールドでの競合を避けるため、フ"
"リースレッドビルドは、選ばれた少数の型に「スレッドごとの参照カウント」も使い"
"ます。\n"
"単一の共有参照カウントを更新する代わりに、各スレッドがローカルな参照カウント"
"の配列を持ち、オブジェクトに割り当てられた一意の ID をインデックスとして使い"
"ます。\n"
"実際の参照カウントを計算するのは、オブジェクトのローカルカウントがゼロになっ"
"たときだけで、その際に各スレッドのカウントを合計します。\n"
"現在、この方式を使うのは次のものです。"
msgid "heap type objects (classes created in Python)"
msgstr "ヒープ型オブジェクト (Python で作成したクラス)"
msgid "code objects"
msgstr "コードオブジェクト"
msgid "the ``__dict__`` of module objects"
msgstr "モジュールオブジェクトの ``__dict__``"
msgid ""
"Because the per-thread counts must be merged back to the object before it "
"can be deallocated, objects using per-thread reference counting are "
"typically freed later than they would be in the default build. In "
"particular, such an object is usually not freed until the thread that "
"referenced it reaches a safe point (for example, in the \"eval breaker\" "
"section of the bytecode evaluator) or exits. Running :func:`gc.collect` "
"will merge the per-thread counts and allow these objects to be freed."
msgstr ""
"スレッドごとのカウントをオブジェクトに集約してからでなければ解放できないた"
"め、この方式を使うオブジェクトは、通常、デフォルトのビルドより遅く解放されま"
"す。\n"
"特に、そのオブジェクトを参照したスレッドが、バイトコード評価器の eval "
"breaker などの安全な地点に到達するか、終了するまでは、通常は解放されませ"
"ん。\n"
":func:`gc.collect` を実行すると、スレッドごとのカウントが集約され、これらのオ"
"ブジェクトを解放できるようになります。"