Merge pull request #14619 from briansull/emitter-cleanup
[platform/upstream/coreclr.git] / src / vm / mda.inl
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
4
5 template<typename PRODUCT>
6 PRODUCT* MdaFactory<PRODUCT>::Create()
7 {
8     WRAPPER_NO_CONTRACT;
9
10     if (m_cProduct == MDA_MAX_FACTORY_PRODUCT) 
11         return GetNext()->Create();
12
13     return &m_product[m_cProduct++];
14 }