public int allocate(int requestSize) { int size = requestSize + 1; // size including header // If possible, take from quick list. if (size < QLSIZE) { // if quick list exists int p = quickGet[size]; if (p != NULL) { // if there is one, use it quickGet[size] = memory[p + 1]; return p + 1; } } // No quick list, continue normal allocation... …