harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Pervov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2740) [drlvm][kernel] System.err.println() doesn't lock console
Date Mon, 05 Feb 2007 13:56:05 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-2740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470213
] 

Pavel Pervov commented on HARMONY-2740:
---------------------------------------

The more generic issue may be that native implementation of write performs char-by-char output,
not whole-buffer-write.

> [drlvm][kernel] System.err.println() doesn't lock console
> ---------------------------------------------------------
>
>                 Key: HARMONY-2740
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2740
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Roman S. Bushmanov
>            Priority: Minor
>         Attachments: PrintTest.java, run.sh
>
>
> System.err.print() doesn't lock the console and this output can be interrupted at any
time by other thread or process.
> To reproduce this issue compile and run the attached PrintTest.java test and run it on
DRLVM in two separate processes which share the same console. Use a shell script like attached
run.sh
> DRLVM output looks like 
> <...>111111111111111111111111111111111111121122212121212121212121212121212121212111111111111111111111111111111111111111121
> 21212122221212121212121212121212121111121212122212121212121212121212121212121111121222121212121212121212121212121212121112122222121212121212121212121212121211112121222121212121212121212121212121212111121222121212121212121212<...>
> but expected to be like
> <...>1111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111222222222222222222221111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111222222222222222222221111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111<...>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message