ReleaseProgram releases a slot back to the program semaphore, clears per-program caches to allow GC of the program, and triggers GC.
()
| 28 | // ReleaseProgram releases a slot back to the program semaphore, clears |
| 29 | // per-program caches to allow GC of the program, and triggers GC. |
| 30 | func ReleaseProgram() { |
| 31 | <-programSemaphore |
| 32 | runtime.GC() |
| 33 | } |
| 34 | |
| 35 | // astCacheKey combines EffectVersion and filename to avoid cross-version |
| 36 | // collisions (V3 and V4 mount different package contents at the same VFS paths). |
no outgoing calls