binary compatibility ABI (was: Re: [boehm-gc] Import 6.3 alpha 1)

Tom Tromey tromey@redhat.com
Tue Sep 23 17:08:00 GMT 2003


>>>>> "Jeff" == Jeff Sturm <jsturm@one-point.com> writes:

>> jint *Body::count() __attribute__((pure));
>> jint *Body::count()
>> {
>> _Jv_InitClass (&class$);
>> return &count$;
>> }

Jeff> Is this legal for a pure function?  I mean, the _Jv_InitClass
Jeff> call clearly has side effects.

We can always add a new attribute like "idempotent" to cover this
case.

Tom



More information about the Java mailing list