scala3 icon indicating copy to clipboard operation
scala3 copied to clipboard

Add time quota in checking global objects

Open liufengyun opened this issue 3 days ago • 0 comments

Make global object checker default to best-effort mode

  • In best-effort mode, the checker tries to be fast, useful and unobtrusive.
  • In the aggressive mode, the checker tries to be sound by spending more check time and produce more verbose warnings.

In both modes, there will be a worst-case performance guarantee based on a quota on the number of method calls in initializing a global object.

liufengyun avatar Dec 08 '25 21:12 liufengyun