decrement

fun decrement(interpreter: Interpreter, targetOptimizationLevel: Int): Boolean

Decrement the counter associated with the code. If this thread was responsible for decrementing it to zero, (re)optimize the code by producing a new chunk. Return whether the chunk was replaced.

Return

Whether a new chunk was activated, whether or not the optimization was due to this fiber.

Parameters

interpreter

The interpreter for the current thread.

targetOptimizationLevel

What level of optimization to apply if reoptimization occurs.