Skip to content

Conversation

@jtulach
Copy link
Contributor

@jtulach jtulach commented Mar 22, 2016

Consistently dispose PolyglotEngine after being used in tests. Give TruffleTCK and its implementor a chance to co-operate on construction of new PolyglotEngine.

Yesterday Andreas @woess noted that the change proposed in #85 is huge. I took a look and yes, it seems huge as it contains a lot of fixes in tests. These fixes are however independent of the #85 change - they just consistently dispose PolyglotEngine after it has been used. I believe this kind of robustness improving changes can go in without any delay. Thus I am starting this pull request.

In addition to that there is one change in TruffleTCK to allow the TCK and the tested language to co-operate on creation of a PolyglotEngine - such factory is needed not only for #85, but also to test import of symbols - the TCK needs to pre-register them into the builder which will be possible with this new method.

@jtulach jtulach assigned japod and chrisseaton and unassigned japod Mar 22, 2016
@jtulach
Copy link
Contributor Author

jtulach commented Mar 22, 2016

Thanks @chrisseaton, your Ruby check in Truffle Travis seems useful: https://travis-ci.org/graalvm/truffle/builds/117651536 - I've created jruby/jruby#3749 to suggest a change that would play OK with this pull request. All the other languages I am aware of should be OK from this point of view - they have already been creating new instance of PolyglotEngine per each TCK test.

@jtulach
Copy link
Contributor Author

jtulach commented Mar 22, 2016

With my latest changes the RubyTckTest succeeds with Tests run: 71, Failures: 0, Errors: 0, Skipped: 0, so I think Ruby is fine. I'll check other Tck implementations.

@chumer
Copy link
Member

chumer commented Mar 22, 2016

Looks good to me.

@chumer chumer added the accept label Mar 22, 2016
…ruffleTCK and its implementor a chance to co-operate on construction of new PolyglotEngine.
@jtulach jtulach force-pushed the DisposePolyglotEngine branch from 48df3e8 to a4d9f09 Compare March 22, 2016 14:55
jtulach pushed a commit that referenced this pull request Mar 22, 2016
Consistently dispose PolyglotEngine after being used in tests
@jtulach jtulach merged commit 1645cfe into oracle:master Mar 22, 2016
jerboaa pushed a commit to jerboaa/graal that referenced this pull request Aug 21, 2025
[Backport] [GR-61888] Fix @Uninterruptible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants