First part of int allocation
implemented allocate_int instead of add_new_int
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user