Commit graph

195 commits

Author SHA1 Message Date
Egor Sheremetov
3937ecf387 Removed extra word in sexp 2023-08-09 20:16:51 +02:00
Egor Sheremetov
dd7cbc7869 fixed illegal use of cur_id with FULL_INVARIANT_CHECKS flag 2023-07-28 17:15:48 +02:00
Egor Sheremetov
65c9b1924b disabled FULL_INVARIANTS_CHECK for lama version 2023-07-28 16:44:28 +02:00
Egor Sheremetov
99ce39ca28 Debug output is now hidden when DEBUG_VERSION compilation option is off, added LAMA_ENV compilation option to control whether global area scan is needed 2023-07-28 16:37:39 +02:00
Egor Sheremetov
ffa0b69841 Added checks that stack-frame didn't move 2023-07-24 10:01:35 +02:00
danyaberezun
ce0b369958 fix: do not fix extra root if it points to lama stack; uncomment extra roots registration; rise error if binary operation is done over pointers 2023-07-03 17:58:55 +02:00
Danya Berezun
8bc173762d fix 2023-06-29 20:05:54 +02:00
Egor Sheremetov
144db5d677 Added extra debug output in debug mode and added one more check of invariants 2023-06-29 15:01:24 +02:00
Egor Sheremetov
1a2342c411 fixed issues with heap traversal output 2023-06-25 22:51:40 +02:00
Egor Sheremetov
31551e73fd Added check of invariance of objects' topology before and after compaction 2023-06-20 16:22:35 +02:00
Egor Sheremetov
11d496405b Merge remote-tracking branch 'origin/1.10' into 1.10 after CI fix 2023-06-01 16:08:33 +02:00
Egor Sheremetov
fc81547ca3 changed MINIMUM_HEAP_CAPACITY 2023-06-01 16:06:23 +02:00
danyaberezun
2a42e1e176 add tag print in error in get_type_header_ptr 2023-05-31 11:33:04 +02:00
danyaberezun
e4fd3c487a add FLAGS 2023-05-31 11:11:19 +02:00
danyaberezun
ccd04c2159 add clang-format; reformat files 2023-05-31 11:01:11 +02:00
Egor Sheremetov
f20d351dd0 removed old (recursive) version of mark phase from the code 2023-05-31 01:08:03 +02:00
Egor Sheremetov
9107a26668 implemented non-recursive mark phase, added time measurement for stress tests 2023-05-31 01:06:53 +02:00
Egor Sheremetov
5da89d0c2e removed some unnecessary debug output, also modified tests to recently changed gc_runtime.s 2023-05-30 22:58:02 +02:00
Egor Sheremetov
4eea9a7933 Fixed bug in physically_relocate + bug fix in runtime.c list iteration 2023-05-23 13:40:46 +02:00
Egor Sheremetov
313997496d Added tests + fixed bunch of bugs in GC implementation 2023-04-26 14:22:14 +02:00
danyaberezun
d23a0fcf61 fflush stdout before failure in vfailure 2023-03-29 14:26:53 +02:00
Egor Sheremetov
3826c8dd32 Added MREMAP_MAYMOVE flag to mremap to ensure similar to realloc behavior 2023-03-27 10:30:06 +02:00
Egor Sheremetov
113c57e7c8 First version of mark-compact GC, runtime.c is severely outdated at the moment 2023-03-27 10:09:54 +02:00
Dmitry Boulytchev
1bafe839dc Merge branch '1.10' of github.com:JetBrains-Research/Lama into 1.10 2023-03-12 05:30:58 +03:00
Dmitry Boulytchev
03adc4df07 Fixed spec 2023-03-12 05:28:12 +03:00
soarex
eb11bd1add Fix incorrect handling of mmap error 2023-01-09 02:47:24 +03:00
Dmitry Boulytchev
f47d872df1 Sync 2022-11-01 09:22:19 +03:00
kakadu
d17ceb3c53 Runtime: Initializate concatenation buffer by zeros
There was a bug about stringcat-ing of empty list,
where it would be filled by garbage. It seems to
happen becase stringBuf.contents are used without
proper check of length of the buffer. We defend from
that my initializing buffer by zeros (end of string)

Signed-off-by: kakadu <kakadu@pm.me>
2022-10-10 18:31:27 +03:00
Dmitry Boulytchev
d0cc8d0fa9 Fixed bug in makeArray 2022-02-14 01:13:14 +03:00
Dmitry Boulytchev
69c0b89e3c Switching off invalid hashconsing 2022-01-31 23:46:18 +03:00
Dmitry Boulytchev
f953814c76 Fixed bug in potential reuse of args in vsnprintf 2021-12-03 03:56:58 +03:00
Dmitry Boulytchev
9ff649e563 fexists added 2021-11-19 01:38:22 +03:00
Dmitry Boulytchev
eb098a6fac Merged PR from Lama 2021-10-31 15:34:34 +03:00
Dmitry Boulytchev
fa874b4a4c Byterun 2021-09-28 03:02:05 +03:00
Dmitry Boulytchev
9e5c562d60 Fixed stringcat 2021-08-13 09:50:07 +03:00
Dmitry Boulytchev
8359b674f8 Increated extra-roots yet again 2021-03-20 13:46:03 +03:00
Dmitry Boulytchev
f1384146cf Increased MAX_EXTRA_ROOTS 2021-03-14 07:08:07 +03:00
Kakadu
882ca93f89 Allow to specify C compiler when building runtime
Try something like `make -C runtime CC=clang-11 all`. It was tested only
on GNU/Linux

Signed-off-by: Kakadu <Kakadu@pm.me>
2021-02-14 18:54:44 +03:00
Dmitry Boulytchev
f1430a1cdf Length, string -> std functions 2021-01-31 22:57:12 +03:00
Dmitry Boulytchev
7eb3e223b8 Merging with origin 2021-01-25 01:38:59 +03:00
Dmitry Boulytchev
2b9adec087 Added assert 2021-01-25 01:22:56 +03:00
Kakadu
64d49ccd01 .gitignore files
Signed-off-by: Kakadu <Kakadu@pm.me>
2020-12-11 18:04:30 +03:00
Dmitry Boulytchev
66dc5c3063 Fix for https://github.com/JetBrains-Research/Lama/issues/16 2020-11-24 23:11:17 +03:00
Dmitry Boulytchev
6ed1b44439 Fixed bug with unbox tag in Bsexp 2020-09-01 20:31:34 +03:00
Dmitry Boulytchev
f16f695ed3 tagHash 2020-09-01 17:23:36 +03:00
Dmitry Boulytchev
ac853957ae Sexpr tags fixed 2020-08-25 16:09:43 +03:00
Dmitry Boulytchev
f08cd8396f Data/Random/Buffer, spec updated 2020-08-22 20:11:41 +03:00
Dmitry Boulytchev
94e4b16267 Updated spec 2020-08-10 20:55:10 +03:00
Dmitry Boulytchev
6f9d0850c7 Added test18 on cyclic equality 2020-08-07 21:40:51 +03:00
Dmitry Boulytchev
026158923f Stdlib:Data 2020-08-06 14:56:41 +03:00