MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / union

Method union

chapter22/src/main/java/com/seaofnodes/simple/codegen/LRG.java:109–115  ·  view source on GitHub ↗
( LRG lrg )

Source from the content-addressed store, hash-verified

107 }
108
109 // Union `this` and `lrg`, keeping the lower numbered _lrg.
110 // Includes a number of fast-path cutouts.
111 LRG union( LRG lrg ) {
112 assert leader();
113 if( lrg==null ) return this;
114 lrg = lrg.find();
115 if( lrg==this ) return this;
116 return _lrg < lrg._lrg ? _union(lrg) : lrg._union(this);
117 }
118 // Union `this` and `lrg`, folding together all stats.

Callers 2

coalesceMethod · 0.95
runMethod · 0.45

Calls 3

leaderMethod · 0.95
_unionMethod · 0.95
findMethod · 0.45

Tested by

no test coverage detected