Skip to content
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

Rename dont_need to discard and mention decommit as an option #388

Merged
merged 1 commit into from
Oct 7, 2015

Conversation

lukewagner
Copy link
Member

As discussed in #384.

* `shmem_create(length)`: create a memory object that can be simultaneously
shared between multiple linear memories
* `map_shmem(addr, length, shmem, shmem-offset)`: like `map_file` except
`MAP_SHARED`, which isn't otherwise valid on read-only Blobs
* `mprotect(addr, length, prot-flags)`: change protection on the range
`[addr, addr+length)` (where `addr+length <= memory_size`)
* `decommit(addr, length)`: equivalent to `mprotect(addr, length, PROT_NONE)`
followed by `discard(addr, length)` and potentially more efficient than
performing these operations in sequence.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting PROT_NONE has a bigger meaning that decommitting IMO. I'm not sure what name would be better... "void" has other meanings.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what you mean. Are you commenting on the naming of decommit?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, but without a better name to suggest I'll lgtm and hope someone else comes up with a nicer name before you commit :-)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hah, thanks. As we see here with dont_need=>discard, we can always rename.

lukewagner added a commit that referenced this pull request Oct 7, 2015
Rename `dont_need` to `discard` and mention `decommit` as an option
@lukewagner lukewagner merged commit f8227ec into master Oct 7, 2015
@lukewagner lukewagner deleted the rename-dont-need branch October 7, 2015 19:31
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