-
Notifications
You must be signed in to change notification settings - Fork 78
Special topic chapter for finalizers and weak references #1265
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
Changes from 10 commits
94f192b
be789b2
a176a41
f1c0970
29d443c
79c8398
fc946c8
160368c
b9c4086
9ec8d5d
e671ab0
2dd16e2
e038fc1
30f5bfc
b07dbd9
1d67c22
abf91d1
aa0930d
8b2b89d
caefc0c
540f477
f7df472
5a9bd5f
1aa4511
fb47ae5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Special topics | ||
|
|
||
| Every VM is special in some way. Because of this, some VM bindings may use MMTk features not | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we change the title, the paragraph needs to be changed accordingly. I feel it is more reasonable that this section is dedicated to how to implement different runtime features with MMTk. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. I changed this part, too. |
||
| usually used by most VMs, and may even deviate from the usual steps of integrating MMTk into the VM. | ||
| Here we provide special guides to cover such cases. | ||
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 suggest using something like "Runtime Features", or "Language Features" as the title. I don't see how this section is 'special' compared to other sections.
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.
What about "VM-Specific Concerns"?
The GC Handbook has a chapter named Language-Specific Concerns, and it discusses only finalizers and weak references. I think that's because finalizer and weak reference semantics is part of the programming language, and is visible to the programmers. Things like conservative stack scanning, object pinning and interior pointers are not all exposed at the language level, but they are more related to VM implementations. So "VM-Specific Concerns" may be a better title.
I don't like calling them "Runtime/Language Features" because "features" are things meant to be used by their users, but things like stack scanning are peculiar aspects of those runtimes/languages that their implementers should care about.
And I think "VM peculiarities" also describes what the chapters in this part are about. But it sounds offensive to the VMs.
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 renamed it to "VM-specific concerns".