316 Commits

Author SHA1 Message Date
lyon
ecfb8cb62f fix CI err 2023-03-08 09:53:39 +08:00
pikastech
7f5edaf090 add objCnt
ready to check where enable the mark_sweep

auto gc with threshold failed, add some assert

more assert about obj alive, dict mark not correct

add pikaGC_try, but cannot run at any time

markSweep crashed on keyword

save gcRoot for obj to debug

add debug point

add kernal_debug config to keep more debug info

use @res_<opt> to mark operation

found self reference on __iter__()

can not fix gc err around iter

remove lock, only keep the self lock

more obj info for debug

only pikaui not pass

only pikaui not pass
2023-03-08 09:35:27 +08:00
lyon
9d4aa3c38c try to fix gc about __pikaMain
fix format

can not markSweep after deinit root

support markRoot if not root

add clang-format

fix path

enable compile-commonds on to support clangd

set markSweep not default

use no_gc object for function frame

only gc for tinyobj, not pikaobj

restore add gc chain when init pikaObj

add clang-format in docker

set for default formatter to clang-format

all Object is GC_ROOT on create

only enable mark sweep to collect after OUT

markSweep after deinit __pikaMain

more mark sweep collect
2023-03-06 10:57:08 +08:00
lyon
38388625ca support mark-sweep gc
change project name and url on kernal sources

rename global Value

format name

use g_PikaObjState

add gc chain

add gc_mark()

add printCanFree

add sub locals init

try use mark-sweep to solve circle-ref

use mark sweep to collect circle ref succeed

import mark-sweep GC

config_default

update
2023-03-05 12:57:27 +08:00
lyon
57a04ca87e fix built-in function print 2023-03-01 22:15:22 +08:00
lyon
cc6fd6605b ready to intruce mark-sweep GC 2023-03-01 21:23:33 +08:00
lyon
ae2ec0a7cd fix 'self' for get method from getattr 2023-03-01 19:28:16 +08:00
pikastech
cb30579c08 update thread, fix parse err on 'not in or' 2023-03-01 15:46:22 +08:00
lyon
3df11749dd add thread.self test 2023-02-28 10:59:53 +08:00
lyon
546daaabe0 logout syntex err line
fix parse err on complex list
2023-02-25 16:43:41 +08:00
lyon
b4f563cfe3 support user compotnents 2023-02-25 16:01:54 +08:00
lyon
0d71c8eed3 fix run native constructor 2023-02-25 12:15:38 +08:00
pikastech
772d990cfa limit max event pickup 2023-02-24 19:20:20 +08:00
lyon
21993122a3 fix weakref
add comment
2023-02-23 21:45:20 +08:00
lyon
6c6be65db6 support add and build 2023-02-22 21:59:28 +08:00
lyon
85d989028e support bool type 2023-02-18 16:35:03 +08:00
lyon
de571a2662 add while_try_while
fix while_try_while vm err
2023-02-15 12:29:47 +08:00
lyon
dfe17ff3b9 fix splitCollect and type hint inner default 2023-02-14 20:53:27 +08:00
lyon
165cc7d041 fix thread and socket on freertos
use pikaMalloc/Free inner platform_thread()

socket multithread test passed on linux

update

improve fast_test.sh
2023-02-14 19:37:30 +08:00
pikastech
1265906952 format shell_filter
set sh_filter as default, add test caces
2023-02-13 15:57:31 +08:00
lyon
531dced423 use pikafs_fxxx API 2023-02-12 11:12:28 +08:00
pikastech
b09cae79d3 raise when list out of index, fix 'for except brea' 2023-02-11 14:44:11 +08:00
lyon
994bb3bdc5 add weakref
add PikaUI test

test PikauI_core passed

save host_obj on methodArg

support save host_obj for method
2023-02-11 00:58:58 +08:00
lyon
cd0029b6d1 fix modbus panic when decode faild 2023-02-10 11:07:25 +08:00
lyon
523aea3d73 add PIKAUI 2023-02-09 23:17:40 +08:00
lyon
30bc567bd6 fix n_used
restore test
2023-02-09 23:12:17 +08:00
lyon
612a8aa33d try to fix chain err 2023-02-09 17:16:40 +08:00
lyon
ec51e2cc11 add ui parse test 2023-02-09 15:53:15 +08:00
lyon
72cd354a8d fix run_file 2023-02-09 15:48:52 +08:00
lyon
15c1c01942 fix CI 2023-02-02 12:12:09 +08:00
lyon
73e056141b fix mem leak when exit thread
support tuple args for _thread.start_new_thread()

update _thread
2023-02-01 21:35:49 +08:00
lyon
0752afac79 add _thread module 2023-02-01 13:15:15 +08:00
lyon
73b9effffd fix suger_multiassin inner def or class 2023-01-30 01:47:18 +08:00
lyon
9b82685e4d check faild on network
fix pos to kw when no enough pos

ifconfig test ok
2023-01-25 14:13:09 +08:00
lyon
e50d75addb use arg_toString to get arg<str> 2023-01-23 23:53:40 +08:00
lyon
68fac66530 fix fn and arg scope, support type() for basic arg 2023-01-23 23:53:40 +08:00
lyon
e2a9489a87 fix tim no found 2023-01-22 23:25:20 +08:00
lyon
d77e7f3f2d add filter for dir() 2023-01-22 23:16:38 +08:00
lyon
6fe30eca60 format parser 2023-01-22 00:37:44 +08:00
lyon
1816e322ce fix l[x()] = b parse err 2023-01-21 23:19:36 +08:00
lyon
cf7fc9cf14 update 2022-12-29 17:21:20 +08:00
lyon
3afb460bf4 fix mem leak when mqtt subscribe, use fake data 2022-12-27 23:24:15 +08:00
lyon
55508d7e84 support del(x) 2022-12-23 18:11:49 +08:00
lyon
e524c2b6ad fix fn_pos_kw_issus2 2022-12-21 13:08:42 +08:00
lyon
1ceb015391 fix load err when fn(pos, kw=xxx) 2022-12-21 00:26:01 +08:00
lyon
3afd92608a fix typo of getArgByIndex 2022-12-21 00:13:19 +08:00
lyon
251c450248 support x not in y syntax 2022-12-15 01:07:27 +08:00
lyon
853d5be3b5 fix leak when load kw dict to default 2022-12-10 16:30:43 +08:00
onceday
0aaf68a189 finish post test 2022-12-10 22:57:07 +08:00
onceday
9695bb1bd2 delete some test code 2022-12-03 23:42:19 +08:00