Lines Matching refs:itemSize
32 void *items; /* hold items in bag, must align on itemSize */
35 int itemSize; /* size of each item, should init to sizeof item */
39 bagCreateBag(int itemSize, int initialAllocation) {
44 itemSize = (itemSize + 7) & ~7; /* fit 8 byte boundary */
45 theBag->items = jvmtiAllocate(initialAllocation * itemSize);
52 theBag->itemSize = itemSize;
59 struct bag *newBag = bagCreateBag(oldBag->itemSize,
63 (void)memcpy(newBag->items, oldBag->items, newBag->used * newBag->itemSize);
81 int itemSize = theBag->itemSize;
82 char *itemsEnd = items + (itemSize * theBag->used);
84 for (; items < itemsEnd; items += itemSize) {
97 int itemSize = theBag->itemSize;
105 new_items = jvmtiAllocate(allocated * itemSize);
109 (void)memcpy(new_items, items, (theBag->used) * itemSize);
115 ret = ((char *)items) + (itemSize * (theBag->used)++);
116 (void)memset(ret, 0, itemSize);
124 int itemSize = theBag->itemSize;
126 void *tailItem = ((char *)items) + (used * itemSize);
129 (void)memcpy(condemned, tailItem, itemSize);
150 int itemSize = theBag->itemSize;
151 char *itemsEnd = items + (itemSize * theBag->used);
153 for (; items < itemsEnd; items += itemSize) {