Mark Wielaard wrote:
Andrews latest patch showed an interesting bootstrap related regression in some cases. Simple showcase:public class TP { public static void main(String[] args) { System.out.println(java.util.TimeZone.getDefault()); } } The problem is that some runtimes (like cacao and jamvm) dynamically load the "javalang" reference library through System.loadLibrary(). But we were relying on Math to do this since obviously it cannot be done in (VM)System/Runtime directly while those are being initialized. I have tried to find a better spot in the bootstrap cycle to do this, but couldn't find one. Ideas welcome. For now to get things working I just reintroduced the loadLibrary() call in the Math static initializer. This should work as before the Math/VMMath split even though it is a little ugly.
Dumb question: what's wrong with calling System.loadLibrary() from within System or Runtime static initializers? Does this cause an infinite loop? If so what's the loop? -Archie __________________________________________________________________________ Archie Cobbs * CTO, Awarix * http://www.awarix.com
