Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.runtime.opto;
 
 import java.util.List;
 
 public class GenerationAndSwitchPointInvalidator implements Invalidator {
     private final GenerationInvalidator generationInvalidator;
    
         = new GenerationInvalidator(module);
    }
    public void invalidate() {
        // does not need to be atomic
    }
    
    public void invalidateAll(List<Invalidatorinvalidators) {
        SwitchPoint[] switchPoints = new SwitchPoint[invalidators.size()];
        
        for (int i = 0; i < invalidators.size(); i++) {
            Invalidator invalidator = invalidators.get(i);
            assert invalidator instanceof GenerationAndSwitchPointInvalidator;
            GenerationAndSwitchPointInvalidator gsInvalidator = (GenerationAndSwitchPointInvalidator)invalidator;
            gsInvalidator.generationInvalidator.invalidate();
            switchPoints[i] = gsInvalidator.switchPointInvalidator.replaceSwitchPoint();
        }
        SwitchPoint.invalidateAll(switchPoints);
    }
    public Object getData() {
        return .getData();
    }
New to GrepCode? Check out our FAQ X