natario1
10/24/2020, 4:29 PMStableRef.create(item).asCPointer().toLong()
, then it is passed outside of the K/N runtime, then it comes back on another thread and you fetch the item again with something like long.toCPointer<CPointed>()?.asStableRef<Item>()
?
Would you end up with the two `Item`s that point to the same location in memory, and that can be accessed concurrently from the two threads? So overcoming the current memory model. Or would this fail, and if so how?svyatoslav.scherbina
10/26/2020, 2:48 PMIncorrectDereferenceException
.
Unless the object is frozen of course.natario1
10/26/2020, 2:57 PM