Relationship between AOT and trampolines

I recently ran into ‘out of trampolines’ exception and found out that generics, interfaces and linq requires a separate memory pool, called trampolines. Hence, I stopped using these programming concepts. IOS uses AOT compiler, and others I assume use JIT. But I did not quiet get the concept of how AOT consumes trampolines, if at all. Limited by my knowledge and my failure to understand it clearly, I can not visualize what is happening in the background. Also, does this mean that the same problem will not arise on JIT compilers? I need someone help me understand this concept (possibly by telling under-the-hood processes involved and/or drawing an analogy) Thank you.

Anyone?

There is a pretty decent explanation here.

1 Like

@AlkisFortuneFish That was pretty informative! Thank you for your help :slight_smile: