* src/vm/jit/jit.cpp: Eliminate one instance of useless cache flushing.
authorStefan Ring <stefan@complang.tuwien.ac.at>
Mon, 28 Nov 2011 20:17:20 +0000 (21:17 +0100)
committerStefan Ring <stefan@complang.tuwien.ac.at>
Mon, 28 Nov 2011 20:17:20 +0000 (21:17 +0100)
src/vm/jit/jit.cpp

index b633292c04ea796831a4f08049c4052f0683432a..f560457b08840242381ce2fcddc94418b7d67568 100644 (file)
@@ -1,6 +1,6 @@
 /* src/vm/jit/jit.cpp - Just-In-Time compiler
 
 /* src/vm/jit/jit.cpp - Just-In-Time compiler
 
-   Copyright (C) 1996-2005, 2006, 2007, 2008
+   Copyright (C) 1996-2011
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
@@ -1036,9 +1036,14 @@ void *jit_compile_handle(methodinfo *m, void *pv, void *ra, void *mptr)
 
        *p = (uintptr_t) newpv;
 
 
        *p = (uintptr_t) newpv;
 
+#if !defined(JIT_COMPILER_VIA_SIGNAL)
        /* Flush both caches. */
        /* Flush both caches. */
+       /* This might have been necessary before we had the compiler trap, but now
+        * it's not. I don't care enough about the (broken) non-signal case to
+        * investigate this. */
 
        md_cacheflush(pa, SIZEOF_VOID_P);
 
        md_cacheflush(pa, SIZEOF_VOID_P);
+#endif
 
        return newpv;
 }
 
        return newpv;
 }