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?
Should the logging be moved out of libruntime, or is there some other
way to fix the last dependency problem?
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?
--
##> Petter Reinholdtsen <## | [EMAIL PROTECTED]