Commit Graph

15 Commits

Author SHA1 Message Date
Andreas Rumpf
1aa359febb warn about inconsistent spacing around binary operators; fixes #7582 2018-05-05 14:58:33 +02:00
Emery Hemingway
9e87531f04 Genode: constrain osTryAllocPages to RAM quota (#6883)
Genode software components all start with an explicit RAM resource quota
which may or may not be upgraded during runtime by the parent process.
With this patch `osTryAllocPages` will fail if allocation exceeds quotas
set by the parent and the `osAllocPages` procedure will trigger a
blocking request to the parent to increase quotas. The previous behavior
could potentially block both procedures indefinitely for a quota upgrade
rather than fail and trigger garbage collection.

This patch also adds tracking of Genode dataspace mappings into the
component address space so they can be detached and freed.
2017-12-14 10:23:47 +01:00
Araq
a0699870e3 osalloc: improve error message when virtualFree fails 2017-12-03 15:20:13 +01:00
Emery Hemingway
7e351fc7fa support for the Genode OS framework (#5560) 2017-03-31 23:13:06 +02:00
Araq
b26e6e3589 fixes #5301 2017-01-30 19:01:03 +01:00
Jacek Sieka
d2d618dde7 add MAP_ANONYMOUS const for amd64, fix MAP_PRIVATE on mips etc (see fe36254) 2016-10-12 22:31:59 +08:00
GaveUp
fe362543de Revert change to osalloc.nim from commit 8d7a45f.
Change caused MAP_ANONYMOUS to have an incorrect value when compiling
for mipsel.

Fixes #4852.
2016-10-04 15:22:36 -05:00
Jacek Sieka
b3846124e6 clean up a few stray c_stdout's in gc debug code 2016-07-31 08:34:42 +08:00
Jeff Ciesielski
4f4aafda6c Plumb {.intdefine.} and {.strdefine.} pragmas.
Shorthand so that users won't need to use the .magic pragma
2016-07-04 22:52:24 -04:00
Jeff Ciesielski
94d1aa5109 Add the ability to pass a value with the -d flag
This allows the end user to use the {.magic: "IntDefine"/"StrDefine"}
pragmas to pass values into code at compile time.  This has a nice side
effect of also allowing/requiring a default value to be assigned in the
code (see osalloc.nim/StandaloneHeapSize for an example)
2016-07-04 18:11:25 -04:00
Yuriy Glukhov
84876edbcb Fixed emscripten compilation 2016-06-13 17:00:13 +03:00
Jacek Sieka
8d7a45f205 prefer consts to importing #defines from headers
to be completed - better would be to have a libc wrapper that deals with
all pesky C ABI details
2016-06-06 23:00:00 +08:00
Hans Raaf
38b7581a28 Fixing pragmas (so syntax highligting works). 2016-05-20 20:26:20 +02:00
Andreas Rumpf
b4e2a846e1 munmap for LLVM 2016-03-28 02:43:16 +02:00
Andreas Rumpf
e2c8d9ade0 beginnings of --gc:stack 2016-03-28 02:26:38 +02:00