An "empty" basic block is a block of size 1, with a JVM NOP instruction.

Signed-off-by: Arthur HUILLET <arthur.huil...@free.fr>
---
 test/jit/branch-bc-test.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/jit/branch-bc-test.c b/test/jit/branch-bc-test.c
index 5684c65..8477cab 100644
--- a/test/jit/branch-bc-test.c
+++ b/test/jit/branch-bc-test.c
@@ -150,7 +150,7 @@ void test_convert_goto(void)
        struct basic_block *goto_bb, *target_bb;
        struct statement *goto_stmt;
        struct compilation_unit *cu;
-       unsigned char code[] = { OPC_GOTO, 0, TARGET_OFFSET };
+       unsigned char code[] = { OPC_GOTO, 0, TARGET_OFFSET, OPC_NOP, OPC_NOP };
        struct methodblock method = {
                .jit_code = code,
                .code_size = ARRAY_SIZE(code),
-- 
1.6.2.2


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to