Commit 0300aaf
context: add ContextSetter.size() (pure-Java slot count)
The dd-trace-java Phase 2 bridge sizes its app-offset arrays from the context
attribute count. It previously read that as snapshotTags().length — a DBB read
that creates a ThreadContext. Expose size() (attributes.size(), pure Java) so the
bridge can size without touching the DBB path; offsetOf + size are the only
ContextSetter methods it still uses.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 019e0f5 commit 0300aaf
1 file changed
Lines changed: 5 additions & 0 deletions
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| |||
0 commit comments