Re: [RFC] JavaHL: Moving some of the C++ object address logic into Java

2012-06-26 Thread Vladimir Berezniker
On Tue, Jun 26, 2012 at 3:18 PM, Hyrum K Wright wrote: > On Sun, Jun 24, 2012 at 9:20 PM, Vladimir Berezniker > wrote: >> Hi All, >> >> In the current JavaHL code the C++ objects are attached via pointer stored in >> the long cppAddr field in java object.  The way C++ code gets hold of the >> cp

Re: [RFC] JavaHL: Moving some of the C++ object address logic into Java

2012-06-26 Thread Hyrum K Wright
On Sun, Jun 24, 2012 at 9:20 PM, Vladimir Berezniker wrote: > Hi All, > > In the current JavaHL code the C++ objects are attached via pointer stored in > the long cppAddr field in java object.  The way C++ code gets hold of the > cppAddr value is to read this field using the GetLongField(). In sum

[RFC] JavaHL: Moving some of the C++ object address logic into Java

2012-06-24 Thread Vladimir Berezniker
Hi All, In the current JavaHL code the C++ objects are attached via pointer stored in the long cppAddr field in java object. The way C++ code gets hold of the cppAddr value is to read this field using the GetLongField(). In summary Java: class JHLClass { long cppAddr; public native method()