Commit Graph

1071 Commits

Author SHA1 Message Date
hyunghwan.chung
4254ea0abe implemented sleep interruption, sort of... 2019-09-03 06:33:58 +00:00
hyunghwan.chung
48734c71a7 changed to adjust moo->sem_io_wait_count in pf_semaphore_unsignal() 2019-09-03 03:28:54 +00:00
hyunghwan.chung
d9df6694cf added the halting event callback 2019-09-02 16:23:03 +00:00
hyunghwan.chung
df01b982cb improved moo->sem_io_wait_count management 2019-09-01 14:51:37 +00:00
hyunghwan.chung
4bbbdaab8f changed to decrement sem_io_wait_count before unchaining in terminate_process() 2019-08-31 16:21:40 +00:00
hyunghwan.chung
b96d977234 some experimental code in terminate_process() to handle IO semaphores properly 2019-08-31 10:21:37 +00:00
hyunghwan.chung
f6d7098744 meaningless 2019-08-31 05:17:55 +00:00
hyunghwan.chung
44425c5e60 relocated process information dumping into a separate function, dump_process_info() in exec.c 2019-08-31 03:08:59 +00:00
hyunghwan.chung
10cf217b7b more semaphore debugging 2019-08-30 15:48:39 +00:00
hyunghwan.chung
d9ad1a7804 debugging semaphore handling 2019-08-30 08:42:21 +00:00
hyunghwan.chung
584e7f121e debugging io semaphore handling upon sudden abortion 2019-08-29 15:18:59 +00:00
hyunghwan.chung
652f13246f moved gcfin_should_exit from Processor to System 2019-08-26 14:43:41 +00:00
hyunghwan.chung
87cf4f4b6a changed chain_to_semaphore() to be more fault resistent 2019-08-24 16:03:17 +00:00
hyunghwan.chung
c8e22fbd92 changed to call printf in test-bi 2019-08-24 15:45:08 +00:00
hyunghwan.chung
018a4790d0 fixed typos in mod/ffi.c 2019-08-24 06:20:36 +00:00
hyunghwan.chung
42df4239a6 added ProcessScheduler>>processById:
attempting to correct signal handling behavior
2019-08-18 17:46:40 +00:00
hyunghwan.chung
071ebb7788 fixed comparison bugs in moo_pf_basic_at_test_put()
changed some methods to use basicLastIndex instead of basicSize - 1
2019-08-17 15:56:47 +00:00
hyunghwan.chung
68eb5d8db8 added Apex>>basicLastIndex, Apex>>_basicLastIndex. Apex>>basicFirstIndex, Apex>>_basicFirstIndex 2019-08-17 10:08:25 +00:00
hyunghwan.chung
a65b64a0d9 completed Apex>>basicAt:test:put.
changed BlockContext>>ensure: and Context>>unwindTo:return: to use basicAt:test:put to make the test-and-set operation uninterruptible
2019-08-17 06:30:34 +00:00
hyunghwan.chung
f3953c4754 adding Apex>>basicAt:test:put: 2019-08-17 05:28:25 +00:00
hyunghwan.chung
24f8525db3 fixed a compiler bug in patch_forward_jump_instruction()
enhanced the compiler to disallow 'goto' in an argument expression to jump out.
2019-08-16 16:19:21 +00:00
hyunghwan.chung
f51fbd1a33 added the vm_setsig vm primitive function to improve os signal handler
changed System>>__os_signal_handelr and System>>startup for improved os signal handling
2019-08-16 15:29:36 +00:00
hyunghwan.chung
f23a5bd22c added two new vm primitives - vm_getsigfd and vm_getsig - to support os signal handling more promptly 2019-08-15 15:55:06 +00:00
hyunghwan.chung
3253b8fe0a enhancing VM to handle OS signals properly. work in progress 2019-08-14 16:24:39 +00:00
hyunghwan.chung
62777b97d6 changed a couple of MOO_ASSERT()'s to MOO_STATIC_ASSERT()'s in lib/bigint.c 2019-08-13 07:19:23 +00:00
hyunghwan.chung
f3c91bbed2 attempting to implement os signal handling. work in progress 2019-08-12 15:54:09 +00:00
hyunghwan.chung
f33af85fbc code clean-up 2019-08-12 02:52:32 +00:00
hyunghwan.chung
2cf12ade33 enhanced pf_call with moo_intmaxtoint() for FMTC_LONGLONG 2019-08-12 02:46:59 +00:00
hyunghwan.chung
2cd60cbed8 added moo_uintmaxtoint() 2019-08-12 02:32:04 +00:00
hyunghwan.chung
bd614c504b enhanced make_bloated_bigint_with_ooi() to handle MOO_TYPE_MIN(moo_ooi_t) 2019-08-12 01:43:11 +00:00
hyunghwan.chung
32341c1773 enhanded make_bigint_with_ooi() to handle MOO_TYPE_MIN(moo_ooi_t) 2019-08-11 16:15:55 +00:00
hyunghwan.chung
273e2d4d02 fixed an infinite loop bug in mod/ffi.c
changed some macros in lib/bigint.c
2019-08-11 14:58:04 +00:00
hyunghwan.chung
5de32310cf added FMTC_BLOB in mod/ffi.c 2019-08-11 10:11:54 +00:00
hyunghwan.chung
7c88b00952 enhanced LONGLONG argument handling in mod/ffi.c 2019-08-10 17:36:34 +00:00
hyunghwan.chung
3f2e39cf44 added moo_inttouintmax and moo_inttointmax 2019-08-10 16:20:44 +00:00
hyunghwan.chung
99bca6a028 removed garbage from mod/ffi.c 2019-08-10 04:10:13 +00:00
hyunghwan.chung
85eae9e78b fixed pointer argument handling issues when interfacing with libffi in mod/ffi.c 2019-08-10 04:08:49 +00:00
hyunghwan.chung
70c97f5ab5 started using libffi in mod/ffi.c if it's available. work in progress 2019-08-09 18:19:13 +00:00
hyunghwan.chung
58b41bc2a5 changed moo->mmgr to moo->_mmgr in lib/std.c 2019-08-08 03:48:26 +00:00
hyunghwan.chung
7b4945f231 enhanced resolve_goto_label() to check block id as well collecting block ids 2019-08-07 09:16:28 +00:00
hyunghwan.chung
bb41dc5486 enhanced compile_while_expression()/compile_do_while_expression() not to eliminate blocks containing one or more labels 2019-08-07 08:34:53 +00:00
hyunghwan.chung
3e1aded8a8 enhanced compile_if_expression() not to eliminate blocks containing one or more labels 2019-08-07 05:33:35 +00:00
hyunghwan.chung
b2ac09072b refactored compile_if_expression() a bit 2019-08-06 15:04:33 +00:00
hyunghwan.chung
569ee2424d added a few comments to lib/comp.c 2019-08-06 10:13:44 +00:00
hyunghwan.chung
11b2629680 fixed some issues regarding goto handling 2019-08-06 10:01:54 +00:00
hyunghwan.chung
c299101781 fixed the issue of a disappearing backward jump instruction in compile_braced_block() 2019-08-05 16:01:40 +00:00
hyunghwan.chung
5296cadde2 fixed a bug of not skipping a goto struct with its ip set to INVALID_IP in adjust_all_gotos_for_elimination() 2019-08-05 15:18:22 +00:00
hyunghwan.chung
ea69bb8d45 changing how to emit code for square bracked block to solve goto related issues. work still in progress 2019-08-05 09:08:03 +00:00
hyunghwan.chung
55bf7e269e trying to fix some goto implementation issues 2019-08-04 16:38:09 +00:00
hyunghwan.chung
490804d0aa added a test case in test-003.moo 2019-08-02 16:19:24 +00:00