Commit aee88c6
Simplify Context to hold only ContextHandle
Remove the _h_green_ctx and _is_green fields from Context. The green
context association is already encoded in the ContextHandle's ContextBox
(which carries a GreenCtxHandle dependency). is_green now queries
get_context_green_ctx() on demand. _from_green_ctx delegates to
_from_handle after creating the context handle. close() only resets
_h_context — the ContextBox destructor handles the green ctx cleanup.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 55d4516 commit aee88c6
2 files changed
Lines changed: 6 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | | - | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | 46 | | |
48 | | - | |
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 52 | + | |
| 53 | + | |
58 | 54 | | |
59 | 55 | | |
60 | | - | |
61 | | - | |
62 | | - | |
| 56 | + | |
63 | 57 | | |
64 | 58 | | |
65 | 59 | | |
| |||
77 | 71 | | |
78 | 72 | | |
79 | 73 | | |
80 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
81 | 77 | | |
82 | 78 | | |
83 | 79 | | |
| |||
91 | 87 | | |
92 | 88 | | |
93 | 89 | | |
94 | | - | |
95 | 90 | | |
96 | 91 | | |
97 | 92 | | |
| |||
0 commit comments