diff options
author | Aditya Kishore <aditya@maprtech.com> | 2014-08-25 21:10:36 +0530 |
---|---|---|
committer | Aditya Kishore <aditya@maprtech.com> | 2014-08-25 21:10:36 +0530 |
commit | f1a46e687ba5572b1cc0c830a4ea787876d5ad7c (patch) | |
tree | 27e189c9b1560fbb99d6d065dbe30f925981ebad /exec | |
parent | 45d65377d7de2cd1e58bb4e1b0650bb2c53eeff1 (diff) |
Set the BitVector memory to zero on allocation.
Diffstat (limited to 'exec')
-rw-r--r-- | exec/java-exec/src/main/codegen/templates/NullableValueVectors.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/exec/java-exec/src/main/codegen/templates/NullableValueVectors.java b/exec/java-exec/src/main/codegen/templates/NullableValueVectors.java index ec99e791a..cb5284132 100644 --- a/exec/java-exec/src/main/codegen/templates/NullableValueVectors.java +++ b/exec/java-exec/src/main/codegen/templates/NullableValueVectors.java @@ -114,6 +114,7 @@ public final class ${className} extends BaseValueVector implements <#if type.maj public boolean allocateNewSafe() { if(!values.allocateNewSafe()) return false; if(!bits.allocateNewSafe()) return false; + bits.zeroVector(); mutator.reset(); accessor.reset(); return true; @@ -123,6 +124,7 @@ public final class ${className} extends BaseValueVector implements <#if type.maj public void allocateNew(int totalBytes, int valueCount) { values.allocateNew(totalBytes, valueCount); bits.allocateNew(valueCount); + bits.zeroVector(); mutator.reset(); accessor.reset(); } @@ -171,6 +173,7 @@ public final class ${className} extends BaseValueVector implements <#if type.maj public void allocateNew() { values.allocateNew(); bits.allocateNew(); + bits.zeroVector(); mutator.reset(); accessor.reset(); } @@ -180,6 +183,7 @@ public final class ${className} extends BaseValueVector implements <#if type.maj public boolean allocateNewSafe() { if(!values.allocateNewSafe()) return false; if(!bits.allocateNewSafe()) return false; + bits.zeroVector(); mutator.reset(); accessor.reset(); return true; @@ -189,6 +193,7 @@ public final class ${className} extends BaseValueVector implements <#if type.maj public void allocateNew(int valueCount) { values.allocateNew(valueCount); bits.allocateNew(valueCount); + bits.zeroVector(); mutator.reset(); accessor.reset(); } @@ -198,6 +203,7 @@ public final class ${className} extends BaseValueVector implements <#if type.maj */ public void zeroVector() { this.values.zeroVector(); + this.bits.zeroVector(); } @Override |