First part of int allocation

implemented allocate_int
instead of add_new_int
This commit is contained in:
Torsten Ruger
2018-11-21 11:12:39 +02:00
parent 5015a11108
commit bbb7dbef75
7 changed files with 98 additions and 12 deletions

View File

@ -71,6 +71,9 @@ module Mom
next_message_reg! << next_message[:next_message]
factory[:next_object] << next_message_reg
# FIXME: Also we relink used messages at the moment. This will have to stop
# when implementing continuations (or block passing/bindings)
# then we may run out and that means cheking and maybe getting more
message[:next_message] << next_message
next_message[:caller] << message
next_message[:method] << callable

View File

@ -27,6 +27,8 @@ module Mom
caller_reg! << message[:caller]
caller_reg[:return_value] << object
factory? << Parfait.object_space.get_factory_for(:Message)
# here we return the current message to the list of messages
# which is only correct without blocks or real continuations
next_message! << factory[:next_object]
message[:next_message] << next_message
factory[:next_object] << message