Commit 5776f15
committed
Remove redundant seq_id and add resource cleanup
- Removed `seq_id` from `HybridCheckpointCache` initialization to make it a stateless, global multi-sequence manager.
- Added `close()` and `__del__()` methods to safely release C++ context references and prevent memory leaks.1 parent f6dda38 commit 5776f15
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
| 336 | + | |
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
341 | 340 | | |
342 | 341 | | |
343 | 342 | | |
| |||
362 | 361 | | |
363 | 362 | | |
364 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
365 | 374 | | |
366 | 375 | | |
367 | 376 | | |
| |||
0 commit comments