Petter Reinholdtsen wrote:

> I'm thinking about making libarch completely separate from the rest of
> Japhar.  The only things left are some methods [THREAD_sleep() and
> MONITOR_timedWait()] using jlong, and of course the misplaced
> MONITOR_getForObject() to be moved to libruntime.
>
> I beleave the library dependency graph should look like this:
>
>   libltdl/native -> libarch -> libruntime -> libjni
>
> Currently, libarch depends a little on libruntime (logging) and a
> little on libjni (types).  If we ignore logging, the only ting left is
> to stop using jlong.  Do you agree that it should be done?

yes.  also, we could just move the logging stuff into the arch directory.

> Should the logging be moved out of libruntime, or is there some other
> way to fix the last dependency problem?

heh, yeah. :)

> I've also been thinking about merging native-threads.h and
> dynamic-loading.h into arch.h.  I think it would make it clearer which
> functions belong to the archecture layer, and which are just
> replacement for missing functiions (in compat.h).  What do you think?

that sounds good too.

cool.  japhar will someday be a codebase i'm not too embarassed to have
other people look at :)

xtoph

Reply via email to