MCPcopy Create free account
hub / github.com/antlr/codebuff / internalReset

Method internalReset

output/java_guava/1.4.17/Striped64.java:287–298  ·  view source on GitHub ↗

Sets base and all cells to the given value.

(long initialValue)

Source from the content-addressed store, hash-verified

285 */
286
287 final void internalReset(long initialValue) {
288 Cell[] as = cells;
289 base = initialValue;
290 if (as != null) {
291 int n = as.length;
292 for (int i = 0; i < n; ++i) {
293 Cell a = as[i];
294 if (a != null)
295 a.value = initialValue;
296 }
297 }
298 }
299
300 // Unsafe mechanics
301

Callers 1

resetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected