12 Commits

Author SHA1 Message Date
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
e39b01651e fix memlack when task queue overflow 2022-12-28 23:39:18 +08:00
lyon
e62072fe0b add close() for std 2022-12-28 06:41:36 +08:00
lyon
83680dce51 Merge branch 'master' into mqttdev 2022-12-27 16:04:29 +08:00
lyon
256319e035 update port linux std
fix baseDev.addEventCallBack

use setCallBack in std

update std

support flow control for uart

add flowcontrol API for std.uart
2022-12-23 18:43:08 +08:00
lyon
140e8e19c8 save cb to a new object 2022-12-18 19:22:43 +08:00
lyon
9294c45feb support sendSignalAwaitResult 2022-11-05 13:20:23 +08:00
lyon
85ece20f4c support cq for evnet, get res from event 2022-11-05 12:34:18 +08:00
lyon
feeca8f135 run event when vm is idle 2022-11-02 12:25:02 +08:00
pikastech
766c9bf7c9 add test_purec.h to support run unittest on purec 2022-10-28 18:39:50 +08:00
pikastech
75d6f97823 move test to top 2022-09-26 21:47:52 +08:00