Judah Diament/Watson/IBM@IBMUS wrote on 08/09/2013 04:26:05 PM:
>
> I need to do the following:
> Rail.asyncCopy(a, low, r, offsetlong - (high-low+1), high-low+1);
> but both the source Rail (a) and the destination GlobalRail (r)
> contain objects. However, the doc states
>
> "Warning: This method is only intended to be used on Rails
> containing non-Object data elements. The elements
> are actually copied via an optimized DMA operation if available.
> Therefore object-references will not be properly
> transferred. Ideally, future versions of the X10 type system would
> enable this restriction to be checked statically. "
>
> How can I do the copy without using this method?
>
use at.
at (gr.home()) {
Rail.copy(src, low, gr.rail(), offsetlong - (high-low+1), high-low+1)
}
The data transfer is less efficient, but you don't have a choice since you
don't have Rails of primitive data.
--dave
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users