You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alex Astapchuk (JIRA)" <ji...@apache.org> on 2006/07/10 14:32:29 UTC

[jira] Created: (HARMONY-816) Initial WBs for Java in Jitrino.JET

Initial WBs for Java in Jitrino.JET 
------------------------------------

         Key: HARMONY-816
         URL: http://issues.apache.org/jira/browse/HARMONY-816
     Project: Harmony
        Type: New Feature

  Components: Contributions  
 Environment: DRLVM+Jitrino
    Reporter: Alex Astapchuk


Initial implementation of write barriers for MMTk in Jitrino.JET,
including support for magics.

To use the implementation:
1. copy wb4j_jet.diff into vm/ and apply 'patch -p0 < wb4j_jet.diff'
2. copy magics.cpp into vm/jitrino/src/jet
3. compile attached test.java and PlanLocal.java (note: you need 
org/vmmagic/unboxed or its stubs available)

By default, the WB code generation is off, to turn it on start VM as
follows:
ij -Xem jet: -Xjit jet::wb4j test

Currently, you will see no visible effect, you can only test it in debugger.

Note: current implementation only inserts WBs into a method named testWB of class test.

This is done intentionally to avoid breaking normal execution of bootstrap.
If you want to change this behavior, then please edit vm/jitrino/src/jet/compiler.cpp
(look for string test::testWB).



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (HARMONY-816) Initial WBs for Java in Jitrino.JET

Posted by "weldon washburn (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-816?page=all ]

weldon washburn reassigned HARMONY-816:
---------------------------------------

    Assignee: weldon washburn

> Initial WBs for Java in Jitrino.JET
> -----------------------------------
>
>                 Key: HARMONY-816
>                 URL: http://issues.apache.org/jira/browse/HARMONY-816
>             Project: Harmony
>          Issue Type: New Feature
>          Components: Contributions
>         Environment: DRLVM+Jitrino
>            Reporter: Alex Astapchuk
>         Assigned To: weldon washburn
>         Attachments: magic.zip, magic2.zip, magics.cpp, magics.cpp, magics.cpp, magics.cpp, magics.cpp, PlanLocal.java, test.java, wb4j_jet.diff
>
>
> Initial implementation of write barriers for MMTk in Jitrino.JET,
> including support for magics.
> To use the implementation:
> 1. copy wb4j_jet.diff into vm/ and apply 'patch -p0 < wb4j_jet.diff'
> 2. copy magics.cpp into vm/jitrino/src/jet
> 3. compile attached test.java and PlanLocal.java (note: you need 
> org/vmmagic/unboxed or its stubs available)
> By default, the WB code generation is off, to turn it on start VM as
> follows:
> ij -Xem jet: -Xjit jet::wb4j test
> Currently, you will see no visible effect, you can only test it in debugger.
> Note: current implementation only inserts WBs into a method named testWB of class test.
> This is done intentionally to avoid breaking normal execution of bootstrap.
> If you want to change this behavior, then please edit vm/jitrino/src/jet/compiler.cpp
> (look for string test::testWB).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-816) Initial WBs for Java in Jitrino.JET

Posted by "Alex Astapchuk (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-816?page=all ]

Alex Astapchuk updated HARMONY-816:
-----------------------------------

    Attachment: test.java

> Initial WBs for Java in Jitrino.JET
> -----------------------------------
>
>          Key: HARMONY-816
>          URL: http://issues.apache.org/jira/browse/HARMONY-816
>      Project: Harmony
>         Type: New Feature

>   Components: Contributions
>  Environment: DRLVM+Jitrino
>     Reporter: Alex Astapchuk
>  Attachments: PlanLocal.java, magics.cpp, test.java
>
> Initial implementation of write barriers for MMTk in Jitrino.JET,
> including support for magics.
> To use the implementation:
> 1. copy wb4j_jet.diff into vm/ and apply 'patch -p0 < wb4j_jet.diff'
> 2. copy magics.cpp into vm/jitrino/src/jet
> 3. compile attached test.java and PlanLocal.java (note: you need 
> org/vmmagic/unboxed or its stubs available)
> By default, the WB code generation is off, to turn it on start VM as
> follows:
> ij -Xem jet: -Xjit jet::wb4j test
> Currently, you will see no visible effect, you can only test it in debugger.
> Note: current implementation only inserts WBs into a method named testWB of class test.
> This is done intentionally to avoid breaking normal execution of bootstrap.
> If you want to change this behavior, then please edit vm/jitrino/src/jet/compiler.cpp
> (look for string test::testWB).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (HARMONY-816) Initial WBs for Java in Jitrino.JET

Posted by "Alex Astapchuk (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-816?page=comments#action_12420989 ] 

Alex Astapchuk commented on HARMONY-816:
----------------------------------------

Sorry, forgot to mention:
The attached stub for PlanLocal must reside in boot class path,  so the correct lauch line is:

ij -Xbootclasspath/p:<path-here> -Xem jet: -Xjit jet::wb4j test 



> Initial WBs for Java in Jitrino.JET
> -----------------------------------
>
>          Key: HARMONY-816
>          URL: http://issues.apache.org/jira/browse/HARMONY-816
>      Project: Harmony
>         Type: New Feature

>   Components: Contributions
>  Environment: DRLVM+Jitrino
>     Reporter: Alex Astapchuk
>  Attachments: PlanLocal.java, magics.cpp, test.java, wb4j_jet.diff
>
> Initial implementation of write barriers for MMTk in Jitrino.JET,
> including support for magics.
> To use the implementation:
> 1. copy wb4j_jet.diff into vm/ and apply 'patch -p0 < wb4j_jet.diff'
> 2. copy magics.cpp into vm/jitrino/src/jet
> 3. compile attached test.java and PlanLocal.java (note: you need 
> org/vmmagic/unboxed or its stubs available)
> By default, the WB code generation is off, to turn it on start VM as
> follows:
> ij -Xem jet: -Xjit jet::wb4j test
> Currently, you will see no visible effect, you can only test it in debugger.
> Note: current implementation only inserts WBs into a method named testWB of class test.
> This is done intentionally to avoid breaking normal execution of bootstrap.
> If you want to change this behavior, then please edit vm/jitrino/src/jet/compiler.cpp
> (look for string test::testWB).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (HARMONY-816) Initial WBs for Java in Jitrino.JET

Posted by "Mikhail Fursov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-816?page=all ]

Mikhail Fursov updated HARMONY-816:
-----------------------------------

    Attachment: magic2.zip

Updated magic.cpp file. The previous attachment has outdated magic.cpp

> Initial WBs for Java in Jitrino.JET
> -----------------------------------
>
>                 Key: HARMONY-816
>                 URL: http://issues.apache.org/jira/browse/HARMONY-816
>             Project: Harmony
>          Issue Type: New Feature
>          Components: Contributions
>         Environment: DRLVM+Jitrino
>            Reporter: Alex Astapchuk
>         Attachments: magic.zip, magic2.zip, magics.cpp, magics.cpp, magics.cpp, magics.cpp, magics.cpp, PlanLocal.java, test.java, wb4j_jet.diff
>
>
> Initial implementation of write barriers for MMTk in Jitrino.JET,
> including support for magics.
> To use the implementation:
> 1. copy wb4j_jet.diff into vm/ and apply 'patch -p0 < wb4j_jet.diff'
> 2. copy magics.cpp into vm/jitrino/src/jet
> 3. compile attached test.java and PlanLocal.java (note: you need 
> org/vmmagic/unboxed or its stubs available)
> By default, the WB code generation is off, to turn it on start VM as
> follows:
> ij -Xem jet: -Xjit jet::wb4j test
> Currently, you will see no visible effect, you can only test it in debugger.
> Note: current implementation only inserts WBs into a method named testWB of class test.
> This is done intentionally to avoid breaking normal execution of bootstrap.
> If you want to change this behavior, then please edit vm/jitrino/src/jet/compiler.cpp
> (look for string test::testWB).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-816) Initial WBs for Java in Jitrino.JET

Posted by "Mikhail Fursov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-816?page=all ]

Mikhail Fursov updated HARMONY-816:
-----------------------------------

    Attachment: magic.zip

The latest magic package + mmtk allocation for 'new' opcode.


> Initial WBs for Java in Jitrino.JET
> -----------------------------------
>
>                 Key: HARMONY-816
>                 URL: http://issues.apache.org/jira/browse/HARMONY-816
>             Project: Harmony
>          Issue Type: New Feature
>          Components: Contributions
>         Environment: DRLVM+Jitrino
>            Reporter: Alex Astapchuk
>         Attachments: magic.zip, magics.cpp, magics.cpp, magics.cpp, magics.cpp, magics.cpp, PlanLocal.java, test.java, wb4j_jet.diff
>
>
> Initial implementation of write barriers for MMTk in Jitrino.JET,
> including support for magics.
> To use the implementation:
> 1. copy wb4j_jet.diff into vm/ and apply 'patch -p0 < wb4j_jet.diff'
> 2. copy magics.cpp into vm/jitrino/src/jet
> 3. compile attached test.java and PlanLocal.java (note: you need 
> org/vmmagic/unboxed or its stubs available)
> By default, the WB code generation is off, to turn it on start VM as
> follows:
> ij -Xem jet: -Xjit jet::wb4j test
> Currently, you will see no visible effect, you can only test it in debugger.
> Note: current implementation only inserts WBs into a method named testWB of class test.
> This is done intentionally to avoid breaking normal execution of bootstrap.
> If you want to change this behavior, then please edit vm/jitrino/src/jet/compiler.cpp
> (look for string test::testWB).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-816) Initial WBs for Java in Jitrino.JET

Posted by "Alex Astapchuk (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-816?page=all ]

Alex Astapchuk updated HARMONY-816:
-----------------------------------

    Attachment: magics.cpp

Update magics.cpp to reflect latest MMTk changes:

- add/sub replaced with plus/minus
- fixed constants passed to MMTk's WB code wrt org.mmtk.utility.Constants.*WRITE_BARRIER
- Stub implementation of atomic attempt() (always succeeds currently)
- Stub (no-op) implementation for prepare*() and prefetch()
- changed rsha/rshl impl wrt Robin Garner's clarification


> Initial WBs for Java in Jitrino.JET
> -----------------------------------
>
>                 Key: HARMONY-816
>                 URL: http://issues.apache.org/jira/browse/HARMONY-816
>             Project: Harmony
>          Issue Type: New Feature
>          Components: Contributions
>         Environment: DRLVM+Jitrino
>            Reporter: Alex Astapchuk
>         Attachments: magics.cpp, magics.cpp, PlanLocal.java, test.java, wb4j_jet.diff
>
>
> Initial implementation of write barriers for MMTk in Jitrino.JET,
> including support for magics.
> To use the implementation:
> 1. copy wb4j_jet.diff into vm/ and apply 'patch -p0 < wb4j_jet.diff'
> 2. copy magics.cpp into vm/jitrino/src/jet
> 3. compile attached test.java and PlanLocal.java (note: you need 
> org/vmmagic/unboxed or its stubs available)
> By default, the WB code generation is off, to turn it on start VM as
> follows:
> ij -Xem jet: -Xjit jet::wb4j test
> Currently, you will see no visible effect, you can only test it in debugger.
> Note: current implementation only inserts WBs into a method named testWB of class test.
> This is done intentionally to avoid breaking normal execution of bootstrap.
> If you want to change this behavior, then please edit vm/jitrino/src/jet/compiler.cpp
> (look for string test::testWB).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-816) Initial WBs for Java in Jitrino.JET

Posted by "Alex Astapchuk (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-816?page=all ]

Alex Astapchuk updated HARMONY-816:
-----------------------------------

    Attachment: magics.cpp

- attempt() implemented
- added unsigned toLong() for Address and Word

> Initial WBs for Java in Jitrino.JET
> -----------------------------------
>
>                 Key: HARMONY-816
>                 URL: http://issues.apache.org/jira/browse/HARMONY-816
>             Project: Harmony
>          Issue Type: New Feature
>          Components: Contributions
>         Environment: DRLVM+Jitrino
>            Reporter: Alex Astapchuk
>         Attachments: magics.cpp, magics.cpp, magics.cpp, magics.cpp, magics.cpp, PlanLocal.java, test.java, wb4j_jet.diff
>
>
> Initial implementation of write barriers for MMTk in Jitrino.JET,
> including support for magics.
> To use the implementation:
> 1. copy wb4j_jet.diff into vm/ and apply 'patch -p0 < wb4j_jet.diff'
> 2. copy magics.cpp into vm/jitrino/src/jet
> 3. compile attached test.java and PlanLocal.java (note: you need 
> org/vmmagic/unboxed or its stubs available)
> By default, the WB code generation is off, to turn it on start VM as
> follows:
> ij -Xem jet: -Xjit jet::wb4j test
> Currently, you will see no visible effect, you can only test it in debugger.
> Note: current implementation only inserts WBs into a method named testWB of class test.
> This is done intentionally to avoid breaking normal execution of bootstrap.
> If you want to change this behavior, then please edit vm/jitrino/src/jet/compiler.cpp
> (look for string test::testWB).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-816) Initial WBs for Java in Jitrino.JET

Posted by "Alex Astapchuk (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-816?page=all ]

Alex Astapchuk updated HARMONY-816:
-----------------------------------

    Attachment: magics.cpp

Fixed toLong, fromLong
Added fromIntSignExtended
Fixed rshl, isMax, isZero, isNull
Changed name compare



> Initial WBs for Java in Jitrino.JET
> -----------------------------------
>
>                 Key: HARMONY-816
>                 URL: http://issues.apache.org/jira/browse/HARMONY-816
>             Project: Harmony
>          Issue Type: New Feature
>          Components: Contributions
>         Environment: DRLVM+Jitrino
>            Reporter: Alex Astapchuk
>         Attachments: magics.cpp, magics.cpp, magics.cpp, PlanLocal.java, test.java, wb4j_jet.diff
>
>
> Initial implementation of write barriers for MMTk in Jitrino.JET,
> including support for magics.
> To use the implementation:
> 1. copy wb4j_jet.diff into vm/ and apply 'patch -p0 < wb4j_jet.diff'
> 2. copy magics.cpp into vm/jitrino/src/jet
> 3. compile attached test.java and PlanLocal.java (note: you need 
> org/vmmagic/unboxed or its stubs available)
> By default, the WB code generation is off, to turn it on start VM as
> follows:
> ij -Xem jet: -Xjit jet::wb4j test
> Currently, you will see no visible effect, you can only test it in debugger.
> Note: current implementation only inserts WBs into a method named testWB of class test.
> This is done intentionally to avoid breaking normal execution of bootstrap.
> If you want to change this behavior, then please edit vm/jitrino/src/jet/compiler.cpp
> (look for string test::testWB).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (HARMONY-816) Initial WBs for Java in Jitrino.JET

Posted by "weldon washburn (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-816?page=all ]

weldon washburn closed HARMONY-816.
-----------------------------------

    Resolution: Won't Fix

The JIT has changed a bunch.  There will be a new JIRA against the modified JIT for the vmmagic, write barrier and MMTk alloc() support.

> Initial WBs for Java in Jitrino.JET
> -----------------------------------
>
>                 Key: HARMONY-816
>                 URL: http://issues.apache.org/jira/browse/HARMONY-816
>             Project: Harmony
>          Issue Type: New Feature
>          Components: Contributions
>         Environment: DRLVM+Jitrino
>            Reporter: Alex Astapchuk
>         Assigned To: weldon washburn
>         Attachments: magic.zip, magic2.zip, magics.cpp, magics.cpp, magics.cpp, magics.cpp, magics.cpp, PlanLocal.java, test.java, wb4j_jet.diff
>
>
> Initial implementation of write barriers for MMTk in Jitrino.JET,
> including support for magics.
> To use the implementation:
> 1. copy wb4j_jet.diff into vm/ and apply 'patch -p0 < wb4j_jet.diff'
> 2. copy magics.cpp into vm/jitrino/src/jet
> 3. compile attached test.java and PlanLocal.java (note: you need 
> org/vmmagic/unboxed or its stubs available)
> By default, the WB code generation is off, to turn it on start VM as
> follows:
> ij -Xem jet: -Xjit jet::wb4j test
> Currently, you will see no visible effect, you can only test it in debugger.
> Note: current implementation only inserts WBs into a method named testWB of class test.
> This is done intentionally to avoid breaking normal execution of bootstrap.
> If you want to change this behavior, then please edit vm/jitrino/src/jet/compiler.cpp
> (look for string test::testWB).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-816) Initial WBs for Java in Jitrino.JET

Posted by "Alex Astapchuk (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-816?page=all ]

Alex Astapchuk updated HARMONY-816:
-----------------------------------

    Attachment: wb4j_jet.diff

> Initial WBs for Java in Jitrino.JET
> -----------------------------------
>
>          Key: HARMONY-816
>          URL: http://issues.apache.org/jira/browse/HARMONY-816
>      Project: Harmony
>         Type: New Feature

>   Components: Contributions
>  Environment: DRLVM+Jitrino
>     Reporter: Alex Astapchuk
>  Attachments: PlanLocal.java, magics.cpp, test.java, wb4j_jet.diff
>
> Initial implementation of write barriers for MMTk in Jitrino.JET,
> including support for magics.
> To use the implementation:
> 1. copy wb4j_jet.diff into vm/ and apply 'patch -p0 < wb4j_jet.diff'
> 2. copy magics.cpp into vm/jitrino/src/jet
> 3. compile attached test.java and PlanLocal.java (note: you need 
> org/vmmagic/unboxed or its stubs available)
> By default, the WB code generation is off, to turn it on start VM as
> follows:
> ij -Xem jet: -Xjit jet::wb4j test
> Currently, you will see no visible effect, you can only test it in debugger.
> Note: current implementation only inserts WBs into a method named testWB of class test.
> This is done intentionally to avoid breaking normal execution of bootstrap.
> If you want to change this behavior, then please edit vm/jitrino/src/jet/compiler.cpp
> (look for string test::testWB).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (HARMONY-816) Initial WBs for Java in Jitrino.JET

Posted by "Alex Astapchuk (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-816?page=all ]

Alex Astapchuk updated HARMONY-816:
-----------------------------------

    Attachment: magics.cpp

In this release
- max now is 0xF..F
- shift did not pop arg from stack
- store(long) did not store high part 
- toLong for Extent is now zero-ext rather than sign-ext.


> Initial WBs for Java in Jitrino.JET
> -----------------------------------
>
>                 Key: HARMONY-816
>                 URL: http://issues.apache.org/jira/browse/HARMONY-816
>             Project: Harmony
>          Issue Type: New Feature
>          Components: Contributions
>         Environment: DRLVM+Jitrino
>            Reporter: Alex Astapchuk
>         Attachments: magics.cpp, magics.cpp, magics.cpp, magics.cpp, PlanLocal.java, test.java, wb4j_jet.diff
>
>
> Initial implementation of write barriers for MMTk in Jitrino.JET,
> including support for magics.
> To use the implementation:
> 1. copy wb4j_jet.diff into vm/ and apply 'patch -p0 < wb4j_jet.diff'
> 2. copy magics.cpp into vm/jitrino/src/jet
> 3. compile attached test.java and PlanLocal.java (note: you need 
> org/vmmagic/unboxed or its stubs available)
> By default, the WB code generation is off, to turn it on start VM as
> follows:
> ij -Xem jet: -Xjit jet::wb4j test
> Currently, you will see no visible effect, you can only test it in debugger.
> Note: current implementation only inserts WBs into a method named testWB of class test.
> This is done intentionally to avoid breaking normal execution of bootstrap.
> If you want to change this behavior, then please edit vm/jitrino/src/jet/compiler.cpp
> (look for string test::testWB).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-816) Initial WBs for Java in Jitrino.JET

Posted by "Alex Astapchuk (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-816?page=all ]

Alex Astapchuk updated HARMONY-816:
-----------------------------------

    Attachment: PlanLocal.java

> Initial WBs for Java in Jitrino.JET
> -----------------------------------
>
>          Key: HARMONY-816
>          URL: http://issues.apache.org/jira/browse/HARMONY-816
>      Project: Harmony
>         Type: New Feature

>   Components: Contributions
>  Environment: DRLVM+Jitrino
>     Reporter: Alex Astapchuk
>  Attachments: PlanLocal.java, magics.cpp, test.java
>
> Initial implementation of write barriers for MMTk in Jitrino.JET,
> including support for magics.
> To use the implementation:
> 1. copy wb4j_jet.diff into vm/ and apply 'patch -p0 < wb4j_jet.diff'
> 2. copy magics.cpp into vm/jitrino/src/jet
> 3. compile attached test.java and PlanLocal.java (note: you need 
> org/vmmagic/unboxed or its stubs available)
> By default, the WB code generation is off, to turn it on start VM as
> follows:
> ij -Xem jet: -Xjit jet::wb4j test
> Currently, you will see no visible effect, you can only test it in debugger.
> Note: current implementation only inserts WBs into a method named testWB of class test.
> This is done intentionally to avoid breaking normal execution of bootstrap.
> If you want to change this behavior, then please edit vm/jitrino/src/jet/compiler.cpp
> (look for string test::testWB).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (HARMONY-816) Initial WBs for Java in Jitrino.JET

Posted by "Alex Astapchuk (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-816?page=all ]

Alex Astapchuk updated HARMONY-816:
-----------------------------------

    Attachment: magics.cpp

> Initial WBs for Java in Jitrino.JET
> -----------------------------------
>
>          Key: HARMONY-816
>          URL: http://issues.apache.org/jira/browse/HARMONY-816
>      Project: Harmony
>         Type: New Feature

>   Components: Contributions
>  Environment: DRLVM+Jitrino
>     Reporter: Alex Astapchuk
>  Attachments: PlanLocal.java, magics.cpp, test.java
>
> Initial implementation of write barriers for MMTk in Jitrino.JET,
> including support for magics.
> To use the implementation:
> 1. copy wb4j_jet.diff into vm/ and apply 'patch -p0 < wb4j_jet.diff'
> 2. copy magics.cpp into vm/jitrino/src/jet
> 3. compile attached test.java and PlanLocal.java (note: you need 
> org/vmmagic/unboxed or its stubs available)
> By default, the WB code generation is off, to turn it on start VM as
> follows:
> ij -Xem jet: -Xjit jet::wb4j test
> Currently, you will see no visible effect, you can only test it in debugger.
> Note: current implementation only inserts WBs into a method named testWB of class test.
> This is done intentionally to avoid breaking normal execution of bootstrap.
> If you want to change this behavior, then please edit vm/jitrino/src/jet/compiler.cpp
> (look for string test::testWB).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira