The company’s Class B stock has surged by 19.2 percent over the past year, topping the US market’s return of 14 percent, including dividends.

The Bill & Melinda Gates Foundation Trust, which will receive 9.4 million shares, was allocated the largest donation, followed by the Susan Thompson Buffet Foundation (943,384), and the Sherwood Foundation, Howard G. Buffet Foundation, and NoVo Foundation (660,366).