java.lang.Object
org.kink_lang.kink.internal.callstack.TailTraceRingBuffer
Ring buffer of traces of tail-calls.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCopy traces from src.booleaninthashCode()makeCopy()New ring buffer equivalent to this buffer.voidPushes the trace to the ring buffer.voidreset()Make the ring buffer empty.toString()traces()Returns the traces.static TailTraceRingBufferwithSize(int size) Makes a ring buffer.
-
Method Details
-
withSize
Makes a ring buffer.- Parameters:
size- the size of the ring buffer.- Returns:
- a new ring buffer with the specified size.
-
traces
Returns the traces.- Returns:
- the traces.
-
push
Pushes the trace to the ring buffer.- Parameters:
trace- the trace.
-
reset
public void reset()Make the ring buffer empty. -
makeCopy
New ring buffer equivalent to this buffer.- Returns:
- a new ring buffer equivalent to this buffer.
-
copyFrom
Copy traces from src.- Parameters:
src- buffer from which traces are copied.
-
toString
-
hashCode
public int hashCode() -
equals
-