Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ byte[] getFlattenedSpeculations(boolean validate) {
return result;
}

/**
* @return {@code true} if the given speculation can be performed, i.e., it never failed so far, otherwise
* return {@code false}. Note, that this method returns consistent results for any given speculation for the
* entire lifetime of the enclosing SpeculationLog object. This means that speculations failed during a
* compilation will not be updated.
*/
@Override
public boolean maySpeculate(SpeculationReason reason) {
if (failedSpeculations != null && failedSpeculations.length != 0) {
Expand Down