Rev 3069 | Rev 3186 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3069 | Rev 3104 | ||
---|---|---|---|
Line 66... | Line 66... | ||
66 | slab_free(cache1, data1); |
66 | slab_free(cache1, data1); |
67 | if (data2) |
67 | if (data2) |
68 | slab_free(cache2, data2); |
68 | slab_free(cache2, data2); |
69 | break; |
69 | break; |
70 | } |
70 | } |
71 | memsetb((uintptr_t) data1, ITEM_SIZE, 0); |
71 | memsetb(data1, ITEM_SIZE, 0); |
72 | memsetb((uintptr_t) data2, ITEM_SIZE, 0); |
72 | memsetb(data2, ITEM_SIZE, 0); |
73 | *((void **) data1) = olddata1; |
73 | *((void **) data1) = olddata1; |
74 | *((void **) data2) = olddata2; |
74 | *((void **) data2) = olddata2; |
75 | olddata1 = data1; |
75 | olddata1 = data1; |
76 | olddata2 = data2; |
76 | olddata2 = data2; |
77 | } while (1); |
77 | } while (1); |
Line 98... | Line 98... | ||
98 | if (!data1) { |
98 | if (!data1) { |
99 | if (!quiet) |
99 | if (!quiet) |
100 | printf("Incorrect memory size - use another test."); |
100 | printf("Incorrect memory size - use another test."); |
101 | return; |
101 | return; |
102 | } |
102 | } |
103 | memsetb((uintptr_t) data1, ITEM_SIZE, 0); |
103 | memsetb(data1, ITEM_SIZE, 0); |
104 | *((void **) data1) = olddata1; |
104 | *((void **) data1) = olddata1; |
105 | olddata1 = data1; |
105 | olddata1 = data1; |
106 | } |
106 | } |
107 | while (1) { |
107 | while (1) { |
108 | data1 = slab_alloc(cache1, FRAME_ATOMIC); |
108 | data1 = slab_alloc(cache1, FRAME_ATOMIC); |
109 | if (!data1) |
109 | if (!data1) |
110 | break; |
110 | break; |
111 | memsetb((uintptr_t) data1, ITEM_SIZE, 0); |
111 | memsetb(data1, ITEM_SIZE, 0); |
112 | *((void **) data1) = olddata1; |
112 | *((void **) data1) = olddata1; |
113 | olddata1 = data1; |
113 | olddata1 = data1; |
114 | } |
114 | } |
115 | 115 | ||
116 | if (!quiet) |
116 | if (!quiet) |