google / google/xls

DSLX: trace! messages from the JIT are returned in an unpredictable order

Open
#678 0 comments 0 reactions 0 assignees View on GitHub
dslx
Dominant language
C++
Stars
1.9k
Forks
283
Avg merge
2d 10h
Merged PRs (30d)
135

Description

In the interpreter, trace messages are emitted in the expected order

In the JIT, though, they come out in an unexpected ordering - even in the unopt output.

i.e., if you have
```
let _ = trace!("A");
let _ = trace!("B");
let _ = trace!("C");
```

They messages may be present in the returned InterpreterResult::events vector in B, C, A, or any other order, as far as I can tell. Order matters!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.