Files
jak-project/test/goalc/source_templates/with_game/test-kernel-alloc.gc
T
water111 7099a1964e [runtime] add process allocations (#834)
* add process allocations

* use the right register for windows

* another try for windows, counting is hard

* one more try
2021-09-06 18:27:24 -04:00

15 lines
449 B
Common Lisp

(let ((proc (get-process *nk-dead-pool* process 1024)))
(activate proc *active-pool* 'test *kernel-dram-stack*)
(run-now-in-process
proc
(lambda :behavior process ()
;; (inspect self)
(let ((old-heap-cur (-> self heap-cur))
(obj (new 'process 'bfloat)))
(set! (-> obj data) 12.0)
;; (inspect self)
(format #t "diff is ~D~%" (&- (-> self heap-cur) old-heap-cur))
)
)
)
)