Commit Graph

26344 Commits (655797ff34f99533cd1abfbbf096e6e466c9615c)

Author SHA1 Message Date
Björn Lindqvist 655797ff34 db.postgresql: ensure that 2 line error messages are handled 2014-09-30 14:53:22 +02:00
Björn Lindqvist 97b3ee37ff db.tester: the postgresql-db variable shouldn't be mutated 2014-09-30 14:51:07 +02:00
Björn Lindqvist e62acb7db3 db.postgresql: configurable test db setting
adds a \ postgresql-db global (analoguous to the \ imap-settings one)
which holds settings to a postgres db so that the tests have something
to test against.
2014-09-29 20:47:39 +02:00
Björn Lindqvist be372831f5 compiler.tests.alien: wrap all callback tests in special
unit-test-with-destructor blocks, that way they dont leak memory in the
callback heap
2014-09-29 07:30:22 -07:00
Björn Lindqvist 5cf8c7cfba alien,stack-checker.alien: move callback-destructor to the alien vocab
It can't be placed in stack-checker.alien because that vocab isn't
included in deployed images which lead to weird errors when the
destructors trigger.
2014-09-29 07:30:22 -07:00
Björn Lindqvist 3f65984055 stack-checker.alien: use free-callback as a destructor when creating
callbacks

+ tests proving it works. now in case you create temporary callbacks you
can enclose them in with-destructors and it will just work(tm).
2014-09-29 07:30:21 -07:00
Björn Lindqvist 8fb317b721 alien: a test and docs for free-callback 2014-09-29 07:30:21 -07:00
Björn Lindqvist e00798cd2a VM: new primitive free-callback which is able to free a callback
previously allocated using <callback>
2014-09-29 07:30:21 -07:00
Björn Lindqvist a338fa08e7 stack-checker.known-words: stack effect for <callback> is switched, it
should be ( word integer -- alien )
2014-09-29 07:30:21 -07:00
Björn Lindqvist 4a96e6163b VM: new primitive (callback-room) for querying the VM about memory usage
The word works exactly like (code-room) except it looks at the memory
usage in the callback heap instead of the code heap.
2014-09-29 07:30:21 -07:00
Björn Lindqvist 85dade6914 VM: use a free_list_allocator for the callbacks, that way they can
individually be freed
2014-09-29 07:30:20 -07:00
Björn Lindqvist 4015565cf6 VM: "formalize" the callback_heaps object allocation using a
bump_allocator<code_block>

The advantage of doing it this way is that you can reuse the existing
each_object method to iterate all callbacks
2014-09-29 07:30:20 -07:00
Björn Lindqvist 4867e7bc96 VM: try and recover with a kernel error from the callback heap running out 2014-09-29 07:30:20 -07:00
Björn Lindqvist 1824680ad1 furnace.db: db-persistence needs a dispose word that delegates to its pool slot
tests in http.tests refactored using "with-words" so that they always
dispose any db-persistence instances they create.
2014-09-28 20:39:25 -07:00
John Benediktsson 3ca2801d33 mason.report: dos2unix. 2014-09-28 20:31:39 -07:00
Björn Lindqvist 2a7a2b32ff benchmark.reverse-complement.tests,mason.report.tests: fix for the test
cases so they write to temp files instead of in resource:
2014-09-28 20:31:18 -07:00
John Benediktsson e5925cf5ad lists: cleanup usings. 2014-09-28 17:21:04 -07:00
Iskander Sitdikov edff21ada3 Refactor >list to be a generic word 2014-09-28 17:17:22 -07:00
Björn Lindqvist 8d6df6d128 tools.deploy.backend: with-variables need to be on the whole block 2014-09-28 22:57:24 +02:00
Björn Lindqvist 07dd28c94d tools.deploy.backend: rearranging the order of parameters in the deploy process, -run needs to be last 2014-09-28 13:14:42 -07:00
Doug Coleman e4e6f34f0e math.statistics: Get smart about the geometric mean. Calculate it in logspace so we can use addition of small logarithms and multiplication instead of the nth root of a giant product. 2014-09-26 13:34:25 -07:00
John Benediktsson aae6fb2ae3 help.html: simplify (and separate) index generation. 2014-09-25 21:30:36 -07:00
John Benediktsson 179c60b0a5 help.html: make docs use same completions algorithm as listener. 2014-09-25 21:08:15 -07:00
John Benediktsson b12ca5e412 command-line: make script and -run= param behave similarly. 2014-09-25 21:08:15 -07:00
Björn Lindqvist c07c1ba9b1 csv: need to handle \r because windows lines ends with \r\n 2014-09-25 10:00:07 -07:00
Doug Coleman ae81a9c426 tools.gc-decode: linux32 is a slow vm and i'm committing from mac and things passed on mac last time. ugh. 2014-09-24 17:20:57 -07:00
Doug Coleman b0179f528e tools.gc-decode: typo.. 2014-09-24 17:15:18 -07:00
Doug Coleman c9e705ff6a tools.deploy: bump sizes for linux32. so not hardcore. 2014-09-24 17:12:02 -07:00
Doug Coleman 3aa88dbeea tools.gc-decode: Fix test for linux32. 2014-09-24 17:12:02 -07:00
Björn Lindqvist c1187500de io.ports.tests: better to use with-disposal than calling the dispose word explicitly 2014-09-24 14:40:34 -07:00
Björn Lindqvist 47c16ed078 io.streams.limited.tests: use with-stream in the tests to ensure that the pipes are disposed 2014-09-24 14:40:34 -07:00
John Benediktsson 13e5edc007 Revert "calendar.format: change to use formatting instead of math.parser.private."
This reverts commit 3cfac7916a.
2014-09-24 07:42:45 -07:00
Björn Lindqvist ab61ba56fc imap.tests: created connections needs to be disposed 2014-09-22 14:30:52 -07:00
Björn Lindqvist 101780d2cd db.postgresql.lib: if PQsetdbLogin fails, PQfinish must be called 2014-09-22 14:29:57 -07:00
Björn Lindqvist b90e52b527 VM: GC_BIGNUM must be called in the same scope as the variable declaration 2014-09-17 12:13:05 -07:00
Doug Coleman cf6ae0ec2e tools.depoy: Bump test size for mac32. 2014-09-12 12:08:05 -07:00
Doug Coleman 202254a087 tools.gc-decode: Fix unit tests for 32bit. 2014-09-12 12:07:26 -07:00
Iskander Sitdikov e62370395e Fix the Atom feed generator 2014-09-10 13:07:32 +04:00
Doug Coleman d2ffa127e4 tools.gc-decode: Fix unit test for compiler fix. 2014-09-08 18:08:50 -07:00
Doug Coleman 4c6435934b compiler.cfg.stacks.vacant: Fix docs for word rename. 2014-09-08 17:48:22 -07:00
Björn Lindqvist 237772daae VM: dont scrub and check when visiting a callstack object
callstack objects doesn't have stacks so it doesn't make sense to scrub
and check. also added the methods check_stack and scrub_stack to deal
with code duplication
2014-09-08 14:54:18 -07:00
Björn Lindqvist ffacc8370d compiler.cfg.stacks.vacant: ##call instructions clear the set of overinitialized locations 2014-09-08 14:54:18 -07:00
Björn Lindqvist e3c2704986 VM: silly error: should be index * check_r_count, not index + check_r_count 2014-09-08 14:54:18 -07:00
Björn Lindqvist 9836d6a1d0 VM: move the stack scrubbing logic to call_frame_slot_visitor to avoid visiting the callstack twice
primitive_minor_gc() iterates the stack twice, first to scrub stack
locations, then to trace overinitialized ones and gc roots. By running
visit_callstack() before visit_stack_elements() you only need to do it
once.
2014-09-08 14:54:18 -07:00
Björn Lindqvist 8fb8313251 VM: use the check_d and check_r to trace the overinitialized stack locations 2014-09-08 14:54:18 -07:00
Björn Lindqvist 5e1a0e212a tools.gc-decode: update vocab to match gc-map changes 2014-09-08 14:54:18 -07:00
Björn Lindqvist 8cd2eee8e0 compiler.codegen.gc-maps: the gc-map-needed? word can be called with f 2014-09-08 14:54:17 -07:00
Björn Lindqvist 8c0f9698de compiler.codegen.gc-maps: check-d>> and check-r>> now used in the code generator
the approach looks sound and now the gc can be fixed to take advantage
of the extra info.
2014-09-08 14:54:17 -07:00
Björn Lindqvist 46082d836a compiler.cfg.stacks.vacant: invert meaning of 0/1 for overinit:ed locs to make some logic simpler 2014-09-08 14:54:17 -07:00
Björn Lindqvist 70e4f2a8b7 compiler.cfg.instructions: added check-d and check-r slots to gc-map
the data is output from compiler.cfg.stacks.vacant in a reasonable
format but not yet used for code generation.
2014-09-08 14:54:17 -07:00