-
Notifications
You must be signed in to change notification settings - Fork 29
[skipruntime] Garbage collector and subscribe callbacks #546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[skipruntime] Garbage collector and subscribe callbacks #546
Conversation
25615ca to
6657909
Compare
|
@beauby, do you think the compiler test failures look like just stale expected results for compiler errors after your change to add full paths to source locations? |
Yes, exactly. |
6657909 to
62112e4
Compare
beauby
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| } | ||
|
|
||
| class Notifier(eptr: SKStore.ExternalPointer) { | ||
| class ExternNotifier(eptr: SKStore.ExternalPointer) extends Notifier { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| class ExternNotifier(eptr: SKStore.ExternalPointer) extends Notifier { | |
| class ExternalNotifier(eptr: SKStore.ExternalPointer) extends Notifier { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to keep the naming consistent, if it has to be renamed it's better to do it in another PR by renaming all the other Extern.
| remoteCollections.each((_k, es) -> es.shutdown()); | ||
| }); | ||
| context.removePersistent(kRemoteSpecifiers); | ||
| context.update(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this update missing before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed
skipruntime-ts/native/src/Runtime.sk
Outdated
| optRequest: ?Request, | ||
| ): GetResult<Values> { | ||
| resourceInstanceId = Ksuid::create().toString(); | ||
| //subscribe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
| context.sessions.maybeGet(session).each(sub -> { | ||
| close = sub.cmd match { | ||
| | SKStore.NWatch(_, _, _, close, _) -> close | ||
| | _ -> invariant_violation("Not manage session kind") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When can this happen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In theory, never
7f2a6e5 to
eefa79c
Compare
eefa79c to
06e6734
Compare
No description provided.