Skip to content

Commit

Permalink
Pass in the right PolyglotContextImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaroslav Tulach committed Jan 29, 2024
1 parent 82b14c3 commit 6133eb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ void ensureCreated(PolyglotLanguage accessingLanguage) {
PolyglotThreadAccessException threadAccessException = null;
LOOP: for (;;) {
if (threadAccessException != null) {
throw threadAccessException.rethrow(this);
throw threadAccessException.rethrow(context);
}
synchronized (context) {
if (!created) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ final class PolyglotThreadAccessException extends Exception {
super(message);
}

RuntimeException rethrow(Object noLockCheck) {
RuntimeException rethrow(PolyglotContextImpl noLockCheck) {
assert !Thread.holdsLock(noLockCheck) : "Only rethrow without holding internal lock";
throw PolyglotEngineException.illegalState(getMessage());
}
Expand Down

0 comments on commit 6133eb0

Please sign in to comment.