You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was playing around with an example and I fail to understand the behavior, consequently I suspect a bug.
The test.cpp file attached shows 3 target regions. All execute 1 loop iteration and write a value into an array of size 1.
Only, the middle one uses a member of the previously mapped object.
While that should not influence the array of size 1, IMHO, it seems to do for some reason.
I see Broken: 0x0 but I would expect Broken: 0x7.
The text was updated successfully, but these errors were encountered:
Is alloc supposed to initialize the mapped this?
I think, n_ is not initialized - or initialized to 0 by the alloc. Since the object is already mapped and reference count is > 0, n_ is not mapped for the target regions.
If I either remove the mapping of this or change to map(to:,... the code works as expected.
Extended Description
I was playing around with an example and I fail to understand the behavior, consequently I suspect a bug.
The test.cpp file attached shows 3 target regions. All execute 1 loop iteration and write a value into an array of size 1.
Only, the middle one uses a member of the previously mapped object.
While that should not influence the array of size 1, IMHO, it seems to do for some reason.
I see Broken: 0x0 but I would expect Broken: 0x7.
The text was updated successfully, but these errors were encountered: