Skip to content

Commit b9c4086

Browse files
committed
Use en_US spelling consistently
1 parent 160368c commit b9c4086

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/userguide/src/portingguide/topics/weakref.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cleared, and associated clean-up operations will be executed. Some VMs also sup
99
weak data structures, such as weak hash tables, where keys, values, or both, can be weak references.
1010

1111
The concrete semantics of finalizer and weak reference varies from VM to VM, but MMTk provides a
12-
low-level API that allows the VM bindings to implement their flavours of finalizer and weak
12+
low-level API that allows the VM bindings to implement their flavors of finalizer and weak
1313
references on top of it.
1414

1515
**A note for Java programmers**: In Java, the term "weak reference" often refers to instances of
@@ -49,7 +49,7 @@ operations, including (but not limited to)
4949
copying GC.
5050
- **Clear the field**: It can clear the field if the referent is unreachable.
5151

52-
Using those primitive operations, the VM binding can support different flavours of finalizers and/or
52+
Using those primitive operations, the VM binding can support different flavors of finalizers and/or
5353
weak references. We will discuss common use cases in the following sections.
5454

5555
## Supporting finalizers
@@ -163,7 +163,7 @@ for object in objects {
163163
```
164164

165165
Keep in mind that **tracer_context implements the `Clone` trait**. As introduced in the *When to
166-
run finalizers* section, the VM binding can use work packets to parallelise finalizer processing.
166+
run finalizers* section, the VM binding can use work packets to parallelize finalizer processing.
167167
If finalizable objects can be resurrected, the VM binding can clone the `trace_context` and give
168168
each work packet a clone of `tracer_context`.
169169

@@ -354,7 +354,7 @@ a minor GC,
354354
finalizable objects must be old and will not be considered dead.
355355
- The VM binding only needs to visit **weak reference slots written since the last GC**. Other
356356
slots must be pointing to old objects (if not `null`). For weak hash tables, if existing
357-
entries are immutable, it is sufficient to only visit newly added entires.
357+
entries are immutable, it is sufficient to only visit newly added entries.
358358

359359
Implementation-wise, the VM binding can split the lists or hash tables into two parts: one for old
360360
entries and another for young entries.

0 commit comments

Comments
 (0)