33import com .ulyp .core .bytes .BytesIn ;
44import com .ulyp .core .bytes .BytesOut ;
55import com .ulyp .core .serializers .Serializer ;
6- import it .unimi .dsi .fastutil .longs .LongArrayList ;
7- import it .unimi .dsi .fastutil .longs .LongList ;
6+ import org .agrona .collections .LongArrayList ;
87
98public class BinaryRecordedCallStateSerializer implements Serializer <CallRecordIndexState > {
109
@@ -17,7 +16,7 @@ public CallRecordIndexState deserialize(BytesIn input) {
1716 int subtreeSize = input .readInt ();
1817 long exitCallRecordAddress = input .readLong ();
1918 int childrenCallCount = input .readInt ();
20- LongList childrenCallIds = new LongArrayList (childrenCallCount );
19+ LongArrayList childrenCallIds = new LongArrayList (childrenCallCount , Long . MIN_VALUE );
2120 for (int i = 0 ; i < childrenCallCount ; i ++) {
2221 childrenCallIds .add (input .readLong ());
2322 }
@@ -36,7 +35,7 @@ public void serialize(BytesOut out, CallRecordIndexState value) {
3635 out .write (value .getEnterMethodCallAddress ());
3736 out .write (value .getSubtreeSize ());
3837 out .write (value .getExitMethodCallAddr ());
39- LongList childrenCallIds = value .getChildrenCallIds ();
38+ LongArrayList childrenCallIds = value .getChildrenCallIds ();
4039 int childrenCallIdCount = childrenCallIds .size ();
4140 out .write (childrenCallIdCount );
4241 for (int i = 0 ; i < childrenCallIdCount ; i ++) {
0 commit comments