PR140 - repaired icedtea7
[cacao.git] / src / vm / hook.hpp
index 0e6656bb49ed7a8acc353d31de61ae0993cbb5b1..e86d052b98ab16cf88b9419fe4b9a37edd51d5a0 100644 (file)
@@ -1,6 +1,6 @@
 /* src/vm/hook.hpp - hook points inside the VM
 
-   Copyright (C) 2009
+   Copyright (C) 2009, 2010
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
@@ -27,6 +27,7 @@
 #define _HOOK_HPP
 
 #include "config.h"
+#include "vm/globals.hpp"
 
 #if defined(ENABLE_OPAGENT)
 #include "vm/jit/oprofile-agent.hpp"
@@ -71,7 +72,8 @@ inline void Hook::breakpoint(Breakpoint *bp)
 
 inline void Hook::class_linked(classinfo *c)
 {
-       /* nop */
+       if (c == class_java_lang_String)
+               linker_initialize_deferred_strings();
 }
 
 inline void Hook::class_loaded(classinfo *c)