[Python-Dev] sizeof(long) != sizeof(void*)

Samuele Pedroni pedronis at bluewin.ch
Thu Aug 7 10:13:21 EDT 2003


At 08:23 07.08.2003 +0200, Martin v. Löwis wrote:

> > why do you think it certainly have to.
>
>Because, in jvmpi.h, I find this:
>
>struct _jobjectID;
>typedef struct _jobjectID * jobjectID;       /* type of object ids */
>typedef struct {
>     ...
>     jobjectID (*jobject2jobjectID)(jobject jobj);
>     ...
>} JVMPI_Interface;

care to do you your homework better next time please, instead of a making a 
cheap point:

http://java.sun.com/j2se/1.4.2/docs/guide/jvmpi/jvmpi.html#jvmpi_ids

notice things like:

A jobjectID is defined by an object alloc event, and remains valid in the 
arena in which the object is allocated until one of its undefining events 
arrive:
...
An object move event is a special type of undefining events. Unlike other 
undefining events which signal the end-of-life of the corresponding 
entities, the object still exists, but its ID changes, and it may have been 
moved to a new arena.
...

Since object IDs may be invalidated during GC,...

See also:

http://java.sun.com/j2se/1.4.2/docs/guide/jvmpi/jvmpi.html#obj_move

Thanks.






More information about the Python-Dev mailing list