This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]