Displaying 3 results from an estimated 3 matches for "nonhared_acquir".
Did you mean:
nonhared_acquire
2020 Nov 18
2
Should I add intrinsics to write my own automatic reference counting passes?
...uire/release
5, pass that substitute the custom intrinsics to function call
6. full optimization passes
I think about having the following intrinsics:
ptr = cast_untyped_to_nonshared(ptr) // e.g. used after allocation
ptr = cast_to_shared_irreversible(ptr) // basically a gateway to other
threads
nonhared_acquire(ptr)
nonshared_release(ptr)
shared_acquire(ptr)
shared_release(ptr)
I also want weak_ptr at a later stage, but leave it out for now to keep
the complexity manageble.
Is this idea completely unreasonable?
Ola.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <h...
2020 Nov 18
0
Should I add intrinsics to write my own automatic reference counting passes?
...e the custom intrinsics to function call
> 6. full optimization passes
>
> I think about having the following intrinsics:
>
> ptr = cast_untyped_to_nonshared(ptr) // e.g. used after allocation
> ptr = cast_to_shared_irreversible(ptr) // basically a gateway to other threads
> nonhared_acquire(ptr)
> nonshared_release(ptr)
> shared_acquire(ptr)
> shared_release(ptr)
>
> I also want weak_ptr at a later stage, but leave it out for now to keep the complexity manageble.
>
> Is this idea completely unreasonable?
LLVM has intrinsics for Objective-C ARC (https://llvm....
2020 Nov 19
1
Should I add intrinsics to write my own automatic reference counting passes?
...call
>> 6. full optimization passes
>>
>> I think about having the following intrinsics:
>>
>> ptr = cast_untyped_to_nonshared(ptr) // e.g. used after allocation
>> ptr = cast_to_shared_irreversible(ptr) // basically a gateway to
>> other threads
>> nonhared_acquire(ptr)
>> nonshared_release(ptr)
>> shared_acquire(ptr)
>> shared_release(ptr)
>>
>> I also want weak_ptr at a later stage, but leave it out for now to
>> keep the complexity manageble.
>>
>> Is this idea completely unreasonable?
The main problem fo...