[squeak-dev] Setting Memory pointer for bitmap object.. is it possible without plugin?

LawsonEnglish LEnglish5 at cox.net
Thu Mar 30 22:32:31 UTC 2023



> On Mar 30, 2023, at 10:16, David T. Lewis <lewis at mail.msen.com> wrote:
> 
> On Thu, Mar 30, 2023 at 09:47:12AM +0200, Marcel Taeumel via Squeak-dev wrote:
>> Hi --
>> 
>> I would use SqueakFFI and through that interface a system library for memory shared between processes. Maybe through memory-mapped files or similar…
>> [urls deleted]
>> 
>> 
>> Once you have your ExternalAddress for that shared memory region, you can start reading and writing bytes from multiple Squeak images. Watch out for synchronization/locking etc.
>> 
> 
> Also, you will want to make sure that your object is pinned,
> see Object>>pin. The reason is that the garbage collector will
> otherwise move your object around in the object memory, which
> would make the pointer invalid, hence VM crash when you later
> read or write using that pointer.
> 
> Dave
> 



More information about the Squeak-dev mailing list