Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
singleton method handle stack overflow #4003
Boom singletons have some problem with indy:
Ok, I found the issue. I knew it was there but did not realize it could cause this problem.
Constant caching for indy invalidates based on two things: global invalidation of that constant name, whenever a new value is set somewhere; and if the target module is different than the last time (for inheritance searches a la
The broken logic unfortunately just build a chained PIC endlessly for both invalidation cases. The one here is for normal constant lookup, which does both a lexical search and a hierarchy search (searchConst) and only invalidates globally. Every time the global invalidation fired, it caused the constant lookups in
I have changes I'll push shortly that bring constant caching in line with method caching, which has invalidation and polymorphic limits.