Re: JNI: Java objects to C for estimating size

From: Gordon Beaton (not_at_for.email)
Date: 02/28/05


Date: 28 Feb 2005 10:46:53 +0100

On 28 Feb 2005 00:44:24 -0800, ws_dev2001@yahoo.com wrote:
> I am trying to obtain the size of a java object in C by using JNI. As
> we do not have a proper implementation of this in java[other than obj
> serialization and reflection etc...], I decided to see if C could
> provide me some accurate data.

Do you not read the newsgroup after posting a question? You have
already received a number of replies to your earlier, identical
question.

If you don't like or don't understand an answer you've been given,
reply to *that* post and say why. Don't just start a new thread to
repeat the original question.

/gordon

-- 
[  do not email me copies of your followups  ]
g o r d o n + n e w s @  b a l d e r 1 3 . s e


Relevant Pages

  • JNI - keeping state in the DLL?
    ... When a Java application makes multiple calls into a DLL via JNI for the same ... what's the conventional idiom for the DLL to store state ... relating to the Java object, where there is no reason to expose the DLL's ...
    (comp.lang.java.programmer)
  • Re: JNI - Sizeof java object
    ... > I am trying to obtain the size of a java object in C by using JNI. ... or is there a real problem that this information ... [do not email me copies of your followups] ...
    (comp.lang.java.programmer)
  • Re: finalize() not guaranteed to be called -- ever
    ... a Java object that's backed by a non-Java entity via JNI could use finalize() to tell its counterpart it's no longer needed. ... Then the Java object should have some kind of dispose method. ...
    (comp.lang.java.programmer)
  • Re: finalize() not guaranteed to be called -- ever
    ... >> Code needn't be buggy to require finalization. ... a Java object that's backed by a non-Java entity ... >> via JNI could use finalizeto tell its counterpart it's ... > Then the Java object should have some kind of dispose method. ...
    (comp.lang.java.programmer)