APIdia Launch Partner
Top Fields Constructors Methods
jdk.jfr.internal.test

public final Class WhiteBox

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static boolean
private static boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean
public static boolean
public static void
setSkipBFS(boolean skip)

If OldObjectSample event is enabled, calling this method ensures that BFS is not used when searching for path to GC root.

public static void
setWriteAllObjectSamples(boolean writeAllSamples)

If OldObjectSample event is enabled, calling this method ensures that all object samples are written, including short-lived objects.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

skipBFSback to summary
private static boolean skipBFS
writeAllObjectSamplesback to summary
private static boolean writeAllObjectSamples

Constructor Detail

WhiteBoxback to summary
public WhiteBox()

Method Detail

getSkipBFSback to summary
public static boolean getSkipBFS()
getWriteAllObjectSamplesback to summary
public static boolean getWriteAllObjectSamples()
setSkipBFSback to summary
public static void setSkipBFS(boolean skip)

If OldObjectSample event is enabled, calling this method ensures that BFS is not used when searching for path to GC root. Purpose of this method is to trigger code paths that are hard to provoke reliably in testing.

setWriteAllObjectSamplesback to summary
public static void setWriteAllObjectSamples(boolean writeAllSamples)

If OldObjectSample event is enabled, calling this method ensures that all object samples are written, including short-lived objects. Purpose of this method is to increase determinism in tests.