• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dart-lang / native / 8527392497 / 11 – jni_tests
81%
main: 81%

Build:
DEFAULT BRANCH: main
Ran 02 Apr 2024 06:23PM UTC
Files 28
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Apr 2024 06:06PM UTC coverage: 83.837% (+0.3%) from 83.571%
jni_tests – 8527392497.11

push

github

web-flow
Enable sharing `JObject`s across isolates (#1060)

We use a `FinalizableHandle` which is for an entire isolate group as opposed to a `NativeFinalizer` which belongs to a single isolate. This way we can use `@pragma('vm:deeply-immutable')` on `JReference` to share the reference object between multiple isolates while the finalizable handle takes care of the global reference deletion.

The guarantees we provide:
* use-after-free will throw from Dart
* use-on-isolate-b-after-free-on-isolate-a will throw from Dart
* double-free will throw from Dart
* free-on-isolate-b-after-free-on-isolate-a will throw from Dart

In general, if we're not eagerly freeing via `.release()`, things work.

1193 of 1423 relevant lines covered (83.84%)

4.79 hits per line

Source Files on job jni_tests - 8527392497.11
  • Tree
  • List 28
  • Changed 21
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 8527392497
  • 179a1770 on github
  • Prev Job for on main (#8504394961.11)
  • Next Job for on main (#8551407971.11)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc