Skip to content

Merge master into BETA_JAVA26#881

Open
jarthana wants to merge 9 commits intoeclipse-jdt:BETA_JAVA26from
jarthana:BETA_JAVA26
Open

Merge master into BETA_JAVA26#881
jarthana wants to merge 9 commits intoeclipse-jdt:BETA_JAVA26from
jarthana:BETA_JAVA26

Conversation

@jarthana
Copy link
Member

@jarthana jarthana commented Feb 27, 2026

What it does

How to test

Author checklist

trancexpress and others added 9 commits February 18, 2026 14:03
During TestLogicalStructures, its possible that the test snippet
triggers GC before the debug framework has called Interpreter.disableCollection()
on objects created for the logical structure. In this case,
the test fails with an ObjectCollectedException.

This change adjusts how GC is performed in the test snippet of TestLogicalStructures.
Instead of waiting a fixed amount of time in the snippet and then running GC,
the tests now run GC with an evaluation, via JDI.

This ensures that Interpreter.disableCollection() is called
before GC is forced in the test snippet, avoiding potential sporadic failures.

Fixes: eclipse-jdt#301
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants