Repository navigation
0.16.0 --- openkal 0.20: transfers at an offset through a second handle, openkal.region, a program's and a unit's memory, the job's own limit - #40
Merged
Conversation
…le, openkal.region, a program's and a unit's memory, the job's own limit - kal_fs_read_at and kal_fs_write_at go through a second handle to the same file, opened relative to the first with exactly its access when first needed, so that neither uses nor moves the position the system shares with the programs the file is given to. - openkal.region over VirtualAlloc/VirtualFree: reserve, commit, decommit, MEM_RESET to discard, release whole; an alignment above 64 KiB reserved wide and again at the aligned address. KAL_REGION_PROP_OVERCOMMIT is not claimed. - KAL_PINFO_MEMORY is the commit charge (K32GetProcessMemoryInfo); kal_process_job_usage is the job's ActiveProcesses and JobMemory. - kal_process_job_limit sets JOB_OBJECT_LIMIT_JOB_MEMORY (KAL_PROCESS_PROP_JOB_LIMIT_HARD); each limited job reports to one completion port, and a context ends the job when it reports its limit, so the whole unit ends; kal_process_wait reports KAL_TERMINATED_LIMIT. - kal_process_job_terminate ends the job with the number kal_process_terminate uses, so its programs are reported as ended rather than as having returned 15. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…ition is claimed there, and an ended program whose counters read zero reports no memory Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements openkal 0.20 (mcpplibs/openkal#58). See the commit message and README 'Version 0.16'.