Commit da213ba
committed
Remove unused handler_path from shared memory
The handler_path field in sentry_crash_context_t was being written to
shared memory by the parent process but was never read by the daemon
process. The daemon only uses the handler_path parameter passed to
sentry__crash_daemon_start().
This change:
- Removes the handler_path field from sentry_crash_context_t, saving
SENTRY_CRASH_MAX_PATH bytes (4096 on Linux, 260 on Windows)
- Passes options->handler_path->path directly to the daemon start
function instead of storing it in shared memory first
- Updates tests to reflect the simplified behavior
Unlike ca_certs, proxy, and user_agent (which the daemon reads from
shared memory in init_daemon), handler_path is now passed directly
where it's actually needed.1 parent 6a57a35 commit da213ba
File tree
3 files changed
+11
-44
lines changed- src/backends
- native
- tests/unit
3 files changed
+11
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
288 | 287 | | |
289 | 288 | | |
290 | 289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | 237 | | |
250 | 238 | | |
251 | 239 | | |
| |||
330 | 318 | | |
331 | 319 | | |
332 | 320 | | |
333 | | - | |
334 | 321 | | |
335 | | - | |
| 322 | + | |
336 | 323 | | |
337 | 324 | | |
338 | 325 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | 360 | | |
367 | 361 | | |
368 | 362 | | |
369 | 363 | | |
370 | 364 | | |
371 | | - | |
372 | 365 | | |
373 | 366 | | |
374 | 367 | | |
| |||
425 | 418 | | |
426 | 419 | | |
427 | 420 | | |
428 | | - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
429 | 425 | | |
430 | 426 | | |
431 | 427 | | |
| |||
435 | 431 | | |
436 | 432 | | |
437 | 433 | | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
449 | 438 | | |
450 | | - | |
| 439 | + | |
451 | 440 | | |
452 | 441 | | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
| 442 | + | |
457 | 443 | | |
458 | 444 | | |
459 | 445 | | |
| |||
481 | 467 | | |
482 | 468 | | |
483 | 469 | | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | 470 | | |
489 | 471 | | |
490 | 472 | | |
491 | 473 | | |
492 | | - | |
493 | 474 | | |
494 | 475 | | |
495 | 476 | | |
| |||
0 commit comments