Package io.perfmark.impl
Class LocalMarkHolder
- java.lang.Object
-
- io.perfmark.impl.LocalMarkHolder
-
public abstract class LocalMarkHolder extends java.lang.ObjectA local MarkHolder is a class that gets the "current" MarkHolder based on context. For example, a thread local MarkHolder could use this class to pull the local MarkHolder from the threadlocal variable. Other implementations are possible as well.
-
-
Constructor Summary
Constructors Constructor Description LocalMarkHolder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract MarkHolderacquire()Get's the current MarkHolder for mutation.abstract voidclear()Removes the local markholder storage.voidrelease(MarkHolder markHolder)Releases the MarkHolder from being written too.
-
-
-
Method Detail
-
clear
public abstract void clear()
Removes the local markholder storage.
-
acquire
public abstract MarkHolder acquire()
Get's the current MarkHolder for mutation. Only called from a tracing thread.
-
release
public void release(MarkHolder markHolder)
Releases the MarkHolder from being written too. Usually called very shortly afteracquire(). This method is meant to be overridden and should not be called from subclasses.
-
-