Skip to content
Snippets Groups Projects
Commit f5785c65 authored by Adam Welc's avatar Adam Welc
Browse files

Minor refactoring that reduces code duplication.

parent e1d2ceaa
No related branches found
No related tags found
No related merge requests found
......@@ -157,16 +157,7 @@ public abstract class RSequence implements RAbstractVector {
@Override
public final RVector materializeNonShared() {
RVector resultVector = this.materialize();
assert !resultVector.isShared();
// marking non-temp must be consistent with what RVector does, otherwise the following code
// will not work:
// x<-1:3 ; attr(x, "myatt")<-2:4 ; y <- x; attr(x, "myatt1")<-"hello" ; attributes(y)
if (FastROptions.NewStateTransition.getBooleanValue()) {
resultVector.incRefCount();
} else {
resultVector.markNonTemporary();
}
RVector resultVector = this.materialize().materializeNonShared();
return resultVector;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment