Commit 2cea382
committed
Remove string frees to support GetUTFRegion transition
Removed string free calls from tracing SDK now obsolete with
the move from GetUTFStringChars to GetUTFRegion in the JNI
string handling.
The higher level code (JNI) never owns memory unless it's
explicitly copied into a string for instance. This makes
memory management simpler and provides some performance
opportunities in the caller.
Test: atest PerfettoTest
Bug: 303199244
Flag: android.os.perfetto_sdk_tracing_v2
Change-Id: I495cd593f04e7444527b567bc7efddfe0cd92f711 parent ae03cf1 commit 2cea382
1 file changed
Lines changed: 0 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | 295 | | |
300 | 296 | | |
301 | | - | |
302 | 297 | | |
303 | 298 | | |
304 | 299 | | |
| |||
321 | 316 | | |
322 | 317 | | |
323 | 318 | | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | 319 | | |
335 | 320 | | |
336 | 321 | | |
| |||
375 | 360 | | |
376 | 361 | | |
377 | 362 | | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | 363 | | |
383 | 364 | | |
384 | 365 | | |
| |||
387 | 368 | | |
388 | 369 | | |
389 | 370 | | |
390 | | - | |
391 | 371 | | |
392 | 372 | | |
393 | 373 | | |
| |||
404 | 384 | | |
405 | 385 | | |
406 | 386 | | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | 387 | | |
418 | 388 | | |
419 | 389 | | |
| |||
0 commit comments