Class CompilationBuffer

java.lang.Object
com.oracle.truffle.regex.tregex.buffer.CompilationBuffer

public class CompilationBuffer extends Object
This class is instantiated once per compilation of a regular expression in TRegexCompiler.compile(RegexLanguage, RegexSource) )} and is supposed to reduce the amount of allocations during automaton generation. It provides various "scratch-pad" buffers for the creation of arrays of unknown size. When using these buffers, take extra care not to use them in two places simultaneously! TRegexCompiler.compile(RegexLanguage, RegexSource) is designed to be run single-threaded, but nested functions may still lead to "simultaneous" use of these buffers.
See Also: