Skip to content

Conversation

@shai-almog
Copy link
Collaborator

Summary

  • track volatile field metadata during translation and declare volatile storage using C atomics
  • read and write volatile static and instance fields via atomic_load/atomic_store, including GC handling
  • include stdatomic.h in the generated globals header for atomic operations

Testing

  • Not run (not requested)

Codex Task

@github-actions
Copy link

github-actions bot commented Dec 25, 2025

✅ Continuous Quality Report

Test & Coverage

Static Analysis

Generated automatically by the PR CI workflow.

@github-actions
Copy link

✅ ByteCodeTranslator Quality Report

Test & Coverage

  • Tests: 169 total, 0 failed, 2 skipped

Benchmark Results

  • Execution Time: 9637 ms

  • Hotspots (Top 20 sampled methods):

    • 23.14% java.lang.String.indexOf (393 samples)
    • 18.02% com.codename1.tools.translator.Parser.isMethodUsed (306 samples)
    • 17.31% com.codename1.tools.translator.Parser.addToConstantPool (294 samples)
    • 7.48% java.util.ArrayList.indexOf (127 samples)
    • 4.95% java.lang.Object.hashCode (84 samples)
    • 3.30% com.codename1.tools.translator.ByteCodeClass.calcUsedByNative (56 samples)
    • 3.12% com.codename1.tools.translator.ByteCodeClass.fillVirtualMethodTable (53 samples)
    • 2.30% java.lang.System.identityHashCode (39 samples)
    • 1.71% com.codename1.tools.translator.BytecodeMethod.optimize (29 samples)
    • 1.18% java.lang.StringBuilder.append (20 samples)
    • 0.94% java.lang.StringCoding$StringEncoder.encode (16 samples)
    • 0.88% java.lang.Integer.getChars (15 samples)
    • 0.77% com.codename1.tools.translator.Parser.cullMethods (13 samples)
    • 0.77% com.codename1.tools.translator.BytecodeMethod.appendCMethodPrefix (13 samples)
    • 0.71% com.codename1.tools.translator.Parser.getClassByName (12 samples)
    • 0.65% java.io.FileOutputStream.writeBytes (11 samples)
    • 0.65% java.io.FileOutputStream.open0 (11 samples)
    • 0.65% com.codename1.tools.translator.ByteCodeClass.markDependent (11 samples)
    • 0.59% com.codename1.tools.translator.BytecodeMethod.appendMethodSignatureSuffixFromDesc (10 samples)
    • 0.59% com.codename1.tools.translator.Parser.generateClassAndMethodIndexHeader (10 samples)
  • ⚠️ Coverage report not generated.

Static Analysis

  • ✅ SpotBugs: no findings (report was not generated by the build).
  • ⚠️ PMD report not generated.
  • ⚠️ Checkstyle report not generated.

Generated automatically by the PR CI workflow.

@shai-almog
Copy link
Collaborator Author

shai-almog commented Dec 25, 2025

iOS screenshot updates

Compared 30 screenshots: 23 matched, 6 updated, 1 missing reference.

  • BrowserComponent — updated screenshot. Screenshot differs (1206x2622 px, bit depth 8).

    BrowserComponent
    Preview info: Preview provided by instrumentation.
    Full-resolution PNG saved as BrowserComponent.png in workflow artifacts.

  • graphics-draw-arc — updated screenshot. Screenshot differs (1206x2622 px, bit depth 8).

    graphics-draw-arc
    Preview info: JPEG preview quality 20; JPEG preview quality 20; downscaled to 603x1311.
    Full-resolution PNG saved as graphics-draw-arc.png in workflow artifacts.

  • graphics-draw-gradient — updated screenshot. Screenshot differs (1206x2622 px, bit depth 8).

    graphics-draw-gradient
    Preview info: JPEG preview quality 10; JPEG preview quality 10; downscaled to 844x1835.
    Full-resolution PNG saved as graphics-draw-gradient.png in workflow artifacts.

  • graphics-draw-round-rect — missing reference. Reference screenshot missing at /Users/runner/work/CodenameOne/CodenameOne/scripts/ios/screenshots/graphics-draw-round-rect.png.

    graphics-draw-round-rect
    Preview info: JPEG preview quality 10; JPEG preview quality 10; downscaled to 844x1835.
    Full-resolution PNG saved as graphics-draw-round-rect.png in workflow artifacts.

  • graphics-draw-string — updated screenshot. Screenshot differs (1206x2622 px, bit depth 8).

    graphics-draw-string
    Preview info: JPEG preview quality 10; JPEG preview quality 10; downscaled to 422x918.
    Full-resolution PNG saved as graphics-draw-string.png in workflow artifacts.

  • graphics-draw-string-decorated — updated screenshot. Screenshot differs (1206x2622 px, bit depth 8).

    graphics-draw-string-decorated
    Preview info: JPEG preview quality 10; JPEG preview quality 10; downscaled to 603x1311.
    Full-resolution PNG saved as graphics-draw-string-decorated.png in workflow artifacts.

  • kotlin — updated screenshot. Screenshot differs (1206x2622 px, bit depth 8).

    kotlin
    Preview info: Preview provided by instrumentation.
    Full-resolution PNG saved as kotlin.png in workflow artifacts.

Benchmark Results

  • VM Translation Time: 276 seconds
  • Compilation Time: 64 seconds

Detailed Performance Metrics

Metric Duration
Build Time Statistics
Setup & Unzip 24021 ms
Extract Extensions 13 ms
Google Services Setup 2 ms
Scan Classes 464 ms
Extract Libs 765 ms
Inject Build Hints 26 ms
Generate Unit Tests 1 ms
Generate Stubs 906 ms
Compile Stubs 2095 ms
Generate Icons 896 ms
Prepare ParparVM 133 ms
ParparVM Execution 159967 ms
Post-VM Setup 131 ms
CocoaPods 4272 ms
Finalize 26 ms
Total Time 193719 msMaven Overhead : 83000 ms
CocoaPods Install (Script) 1000 ms
Simulator Boot (Run) 43000 ms
App Install 16000 ms
App Launch 9000 ms
Test Execution 137000 ms

@shai-almog shai-almog merged commit 6c47754 into master Dec 25, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants