[m-rev.] diff: another bug with static data on java

Peter Wang novalazy at gmail.com
Fri Oct 2 14:11:17 AEST 2009


On 2009-10-02, Peter Wang <novalazy at gmail.com> wrote:
> Branches: main
> 
> Fix a problem with the Java backend, where static data structures could be
> initialised with an unnecessary secondary tag if --common-struct is disabled
> (e.g. at -O1).  A previous change fixed it when --common-struct is enabled.
> 
> compiler/ml_unify_gen.m:
>         Don't initialise compound data structures with an extra secondary tag
>         argument if --high-level-data is used.

After thinking about it a bit more, this change (and an earlier one)
would further break hl.gc as secondary tags are needed there.  However,
secondary tags are not needed in class-based languages.  I'll see about
fixing it.

Peter
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list