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

Method union

chapter23/src/main/java/com/seaofnodes/simple/codegen/LRG.java:108–114  ·  view source on GitHub ↗
( LRG lrg )

Source from the content-addressed store, hash-verified

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