Example #1
0
        public RegionLinkedList <ElementClass> WarmHeap(uint num_objects)
        {
            RegionLinkedList <ElementClass> list =
                new RegionLinkedList <ElementClass>();

            for (int i = 0; i < num_objects; i++)
            {
                list.InsertFirst(new ElementClass("thisisalargestringit'sbigdata"));
            }
            return(list);
        }
Example #2
0
        public RegionLinkedList <RegionLinkedList <ElementClass> > WarmHeap(uint num_lists, uint num_objects)
        {
            RegionLinkedList <RegionLinkedList <ElementClass> > list =
                new RegionLinkedList <RegionLinkedList <ElementClass> >();

            for (int i = 0; i < num_lists; ++i)
            {
                RegionLinkedList <ElementClass> inner_list =
                    new RegionLinkedList <ElementClass>();
                for (int j = 0; j < num_lists; ++j)
                {
                    inner_list.InsertFirst(new ElementClass("thisisalargestringit'sbigdata"));
                }
                list.InsertFirst(inner_list);
            }
            return(list);
        }