manuel-serrano / bigloo

a practical Scheme compiler
http://www-sop.inria.fr/indes/fp/Bigloo
Other
133 stars 20 forks source link

Java profiling fix #74

Closed donaldsonjw closed 1 year ago

donaldsonjw commented 2 years ago

Fix profile build in jvm backend and correct the signature of BGL_AS_OBJECT in foreign.java.

Bigloo reported a problem finding clinit when compiling bigloo classes. This was due to clinit being declared for both bigloo modules and bigloo classes but only actually being defined for bigloo modules. Additionally, made a small correction to the clinit generated for profiling when no existing clinit definition was available for modification; a return instruction was appenoded to the clinit profiling logic.

And BGL_AS_OBJECT needs to return bigloo.object not Object