Skip to content

Commit 2d540ca

Browse files
committed
*may* require a global lock
1 parent 3d3557d commit 2d540ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/arrays.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,8 +809,8 @@ assert(copy.ptr != array.ptr);
809809
---
810810
)
811811

812-
$(NOTE Accessing `.capacity` requires the runtime to
813-
acquire a global lock and perform a table lookup.)
812+
$(NOTE Accessing `.capacity` may require the runtime to
813+
acquire a global lock and perform a cache lookup.)
814814

815815
$(BEST_PRACTICE Avoid intensive use of `.capacity` in performance-sensitive code.
816816
Instead, track the capacity locally when building an array via a unique reference.)

0 commit comments

Comments
 (0)