java.lang.Object
org.kink_lang.kink.internal.callstack.TailTraceRingBuffer
Ring buffer of traces of tail-calls.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Copy traces from src.boolean
int
hashCode()
makeCopy()
New ring buffer equivalent to this buffer.void
Pushes the trace to the ring buffer.void
reset()
Make the ring buffer empty.toString()
traces()
Returns the traces.static TailTraceRingBuffer
withSize
(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
-