You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Varlamov (JIRA)" <ji...@apache.org> on 2007/02/22 07:13:05 UTC
[jira] Commented: (HARMONY-3018) [drlvm][unit] cunit test
thread/test_ti_instrum.c fails from time to time
[ https://issues.apache.org/jira/browse/HARMONY-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474920 ]
Alexey Varlamov commented on HARMONY-3018:
------------------------------------------
Elena, a few questions on the patch:
1) Why condition changed '!=' -> '>':
- if (MAX_TESTED_THREAD_NUMBER - i != waiting_on_monitor_nmb + 1){
+ while ((MAX_TESTED_THREAD_NUMBER - i > waiting_on_monitor_nmb + 1) && (cycles-- > 0)) {
2) Seems there is a border case when cycles == 0 might give a false failure:
+ if (cycles <= 0){
3) 10 min isn't too long for waiting?
+#define MAX_TIME_TO_WAIT 600000
> [drlvm][unit] cunit test thread/test_ti_instrum.c fails from time to time
> -------------------------------------------------------------------------
>
> Key: HARMONY-3018
> URL: https://issues.apache.org/jira/browse/HARMONY-3018
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Elena Semukhina
> Attachments: H-3018_test_ti_instrum.patch
>
>
> I managed to reproduce the failure with iterative runs on linux ia32 gcc release build:
> test test_ti_instrum failed:
> test_jthread_get_blocked_count start
> [echo] ERROR: Test failed: Wrong number waiting on monitor threads (/export/lab_drlbuild/combined_gcc/CVS_20070117_0002_H/drlvm/trunk/vm/tests/unit/thread/test_ti_instrum.c:139)
> To run the test iteratively please use the following command:
> i=0; while true; do ./test_ti_instrum -Dorg.apache.harmony.vm.vmdir=$DRLVM_HOME/bin/default -Djava.home=$DRLVM_HOME; ec=$?; echo $i $ec; test $ec != 0 && break; i=$[i+1]; done
> Once I saw the failure on linux ia32 icc debug build.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.