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

FlysonBot / Mastermind / 23100179662

15 Mar 2026 01:00AM UTC coverage: 86.207% (-0.08%) from 86.288%
23100179662

push

github

FlysonBot
fix: JVM's default GC has memory tagging bug when running on Android with MTE enabled

2 of 3 new or added lines in 1 file covered. (66.67%)

625 of 725 relevant lines covered (86.21%)

0.86 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/src/main/python/mastermind/jvm.py
1
import jpype
1✔
2
from mastermind.java_setup import ensure_ready
1✔
3

4
jre, jar = ensure_ready()
1✔
5

6
if jre is None:
1✔
7
    # Android/Termux: use the system JDK's libjvm directly
8
    import glob
×
9

10
    matches = glob.glob(
×
11
        "/data/data/com.termux/files/usr/lib/jvm/java-21-openjdk*/lib/server/libjvm.so"
12
    )
13
    if not matches:
×
14
        raise RuntimeError("libjvm.so not found. Is openjdk-21 installed via pkg?")
×
15

16
    jvmpath = matches[0]
×
17

18
else:
19
    jvmpath = str(jre / "lib" / "server" / "libjvm.so")
1✔
20

21
_jvm_flags = ["-Xlog:os+container=off"]
1✔
22
if jre is None:
1✔
23
    # Android/Termux: SerialGC avoids pointer-tagging conflicts with MTE on ARM64
NEW
24
    _jvm_flags.append("-XX:+UseSerialGC")
×
25

26
jpype.startJVM(
1✔
27
    *_jvm_flags,
28
    jvmpath=jvmpath,
29
    classpath=[str(jar)],
30
    convertStrings=False,
31
)
32

33
MastermindSession = jpype.JClass("org.mastermind.MastermindSession")
1✔
34
ConvertCode = jpype.JClass("org.mastermind.codes.ConvertCode")
1✔
35
ExpectedSize = jpype.JClass("org.mastermind.compute.ExpectedSize")
1✔
36
Feedback = jpype.JClass("org.mastermind.compute.Feedback")
1✔
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