ObjFW  Diff

Differences From Artifact [8841787590]:

To Artifact [1f55e2f307]:


108
109
110
111
112
113
114
115

116
117
118
119
120
121
122
123
124
125
126
127
108
109
110
111
112
113
114

115
116
117
118


119
120
121
122
123
124
125







-
+



-
-







	struct page *lastPage;
#endif

	if ((page = malloc(sizeof(*page))) == NULL)
		@throw [OFOutOfMemoryException
		    exceptionWithRequestedSize: sizeof(*page)];

	if ((page->map = malloc(mapSize)) == NULL)
	if ((page->map = calloc(1, mapSize)) == NULL)
		@throw [OFOutOfMemoryException
		    exceptionWithRequestedSize: mapSize];

	of_explicit_memset(page->map, 0, mapSize);

	page->page = mapPages(1);
	of_explicit_memset(page->page, 0, pageSize);

#if !defined(OF_HAVE_COMPILER_TLS) && defined(OF_HAVE_THREADS)
	lastPage = of_tlskey_get(lastPageKey);
#endif